From e98017ad29fba4f214bdeffce6784c89f4db7f53 Mon Sep 17 00:00:00 2001 From: Alex Hirsch Date: Fri, 7 Aug 2015 13:21:43 +0200 Subject: [PATCH] disable seeding of updates --- scripts/disable-automatic-windowsupdate.ps1 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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