diff --git a/scripts/disable-automatic-windowsupdate.ps1 b/scripts/disable-automatic-windowsupdate.ps1 index 4695f1c..5529b3d 100644 --- a/scripts/disable-automatic-windowsupdate.ps1 +++ b/scripts/disable-automatic-windowsupdate.ps1 @@ -13,5 +13,5 @@ Windows Registry Editor Version 5.00 "@ $regfile = "$env:windir\Temp\registry.reg" $reg | Out-File $regfile -regedit /s $regfile -rm $regfile \ No newline at end of file +Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait +rm $regfile diff --git a/scripts/disable-defender.ps1 b/scripts/disable-defender.ps1 index 5869b6b..07b9e9d 100644 --- a/scripts/disable-defender.ps1 +++ b/scripts/disable-defender.ps1 @@ -16,5 +16,5 @@ Windows Registry Editor Version 5.00 "@ $regfile = "$env:windir\Temp\registry.reg" $reg | Out-File $regfile -regedit /s $regfile -rm $regfile \ No newline at end of file +Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait +rm $regfile diff --git a/scripts/disable-telemetry.ps1 b/scripts/disable-telemetry.ps1 index e5c353b..2ba6eba 100644 --- a/scripts/disable-telemetry.ps1 +++ b/scripts/disable-telemetry.ps1 @@ -68,5 +68,5 @@ Windows Registry Editor Version 5.00 "@ $regfile = "$env:windir\Temp\registry.reg" $reg | Out-File $regfile -regedit /s $regfile +Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait rm $regfile diff --git a/scripts/remove-onedrive.ps1 b/scripts/remove-onedrive.ps1 index 897b4c1..0706f9e 100644 --- a/scripts/remove-onedrive.ps1 +++ b/scripts/remove-onedrive.ps1 @@ -28,7 +28,7 @@ Windows Registry Editor Version 5.00 "@ $regfile = "$env:windir\Temp\registry.reg" $reg | Out-File $regfile -regedit /s $regfile +Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait rm $regfile echo "Removing startmenu entry"