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 = @" + + + + + + + + + +