Browse Source

call regedit via Start-Process -Wait

pull/55/head
Alex Hirsch 9 years ago
parent
commit
8d7f9df7f4
  1. 4
      scripts/disable-automatic-windowsupdate.ps1
  2. 4
      scripts/disable-defender.ps1
  3. 2
      scripts/disable-telemetry.ps1
  4. 2
      scripts/remove-onedrive.ps1

4
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
Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait
rm $regfile

4
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
Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait
rm $regfile

2
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

2
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"

Loading…
Cancel
Save