You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
9 years ago
|
# Description:
|
||
|
# This script disables automatic downloading and installation of Windows
|
||
9 years ago
|
# updates via Group Policies. Additinally seeding updates to other computers is
|
||
|
# disables.
|
||
9 years ago
|
|
||
9 years ago
|
echo "Disable automatic download and installation of Windows updates"
|
||
9 years ago
|
$reg = @"
|
||
|
Windows Registry Editor Version 5.00
|
||
|
|
||
|
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate\AU]
|
||
|
"NoAutoUpdate"=dword:00000000
|
||
|
"AUOptions"=dword:00000002
|
||
|
"ScheduledInstallDay"=dword:00000000
|
||
|
"ScheduledInstallTime"=dword:00000003
|
||
|
"@
|
||
|
$regfile = "$env:windir\Temp\registry.reg"
|
||
|
$reg | Out-File $regfile
|
||
9 years ago
|
Start-Process "regedit.exe" -ArgumentList ("/s", "$regfile") -Wait
|
||
|
rm $regfile
|
||
9 years ago
|
|
||
|
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
|