简体   繁体   中英

disable auto windows update for windows server 2016 using powershell to change registry key

I am trying to disable windows auto update by changing the registry key value for a VM. I have modified the 'NoAutoUpdate' key to 1 using below statement.

set-ItemProperty -Path HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU -Name NoAutoUpdates -Value 1

But I see that after changing the registry value also some security patches were installed on the VM. So, Does changing registry key value requires a system reboot to take effect? if Yes, is there a way to avoid it, as it has to be done on production servers and we cant reboot them.

i turned off windows updates by configuring a fake WSUS server and disabling online lookups.

[ 假 WSUS server1]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM