From f55814f349cde9bae019609ceacc6515166d76fa Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Tue, 10 May 2022 08:18:13 -0500 Subject: [PATCH] update --- .gitignore | 5 + winutil-mt.ps1 | 1742 ++++++++++++++++++++++++++++++++++++++++++++++++ winutil.ps1 | 751 ++++++++++++++++++--- 3 files changed, 2401 insertions(+), 97 deletions(-) create mode 100644 winutil-mt.ps1 diff --git a/.gitignore b/.gitignore index 38c65c45..1073df85 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ ooshutup10.cfg OOSU10.exe +*.exe +System.Management.Automation.dll +Microsoft.PowerShell.ConsoleHost.dll +winutil.exe.config +winutil.pdb diff --git a/winutil-mt.ps1 b/winutil-mt.ps1 new file mode 100644 index 00000000..b1f3967d --- /dev/null +++ b/winutil-mt.ps1 @@ -0,0 +1,1742 @@ +Add-Type –assemblyName PresentationFramework + +#CREATE HASHTABLE AND RUNSPACE FOR GUI +$syncHash = [hashtable]::Synchronized(@{}) +$newRunspace =[runspacefactory]::CreateRunspace() +$newRunspace.ApartmentState = "STA" +$newRunspace.ThreadOptions = "ReuseThread" +$newRunspace.Open() +$newRunspace.SessionStateProxy.SetVariable("syncHash",$syncHash) +$code = { + + #Build the GUI + [xml]$xaml = @" + + + + + + + + + +