Browse Source

disable seeding of updates

pull/55/head
Alex Hirsch 9 years ago
parent
commit
e98017ad29
  1. 16
      scripts/disable-automatic-windowsupdate.ps1

16
scripts/disable-automatic-windowsupdate.ps1

@ -1,7 +1,9 @@
# Description:
# This script disables automatic downloading and installation of Windows
# updates via Group Policies.
# updates via Group Policies. Additinally seeding updates to other computers is
# disables.
echo "Disable automatic download and installation of Windows updates"
$reg = @"
Windows Registry Editor Version 5.00
@ -15,3 +17,15 @@ $regfile = "$env:windir\Temp\registry.reg"
$reg | Out-File $regfile
Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait
rm $regfile
echo "Disable seeding of updates to other computers"
$reg = @"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization]
"SystemSettingsDownloadMode"=dword:00000003
"@
$regfile = "$env:windir\Temp\registry.reg"
$reg | Out-File $regfile
Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait
rm $regfile

Loading…
Cancel
Save