diff --git a/scripts/disable-automatic-windowsupdate.ps1 b/scripts/disable-automatic-windowsupdate.ps1 index 5529b3d..10d1f59 100644 --- a/scripts/disable-automatic-windowsupdate.ps1 +++ b/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