Hi,
Both the powershell script and the group policy set the registry value and make the Windows Update description change in several minutes on my machine. If I restart the Settings apps it changes immediately.
Best Regards,
Ian Xue
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Experts,
From the below PowerShell comment we are changing the registry value to disable the windows auto update for 2012 and 2019 windows servers. This below comment is changing windows update from download only to manul. But still auto update is happening. Auto update needs to disabled. Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name NoAutoUpdate -Value 1From the below comment, we are setting windows automatic update setting as " Never check for update ( not recommended)**$AUSettings = (New-Object -com "Microsoft.Update.AutoUpdate").Settings $AUSettings.NotificationLevel = 1$AUSettings.Save()**Still Auto update is happening we are getting the below screen.
Expected state should be shown as below in the picture.
Kindly help me to do disable the Auto update via powershell.
Thanks in advance
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.
Hi,
Both the powershell script and the group policy set the registry value and make the Windows Update description change in several minutes on my machine. If I restart the Settings apps it changes immediately.
Best Regards,
Ian Xue
Hi,
You only need to set the registry value NoAutoUpdate under HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU to 1. This is also what the group policy Configure Automatic Updates does. I modify the registry value on my machine and the state of Windows Update becomes what is shown in the second picture. Please make sure the type of the registry value is REG_DWORD or you can recreate the registry value and see if this works.
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name NoAutoUpdate
New-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name NoAutoUpdate -Value 1 -PropertyType DWORD
Best Regards,
Ian Xue
@ian_xue
Hi Ian
Thanks for your reply.
I tried the registry change. Yes, it's reflecting but after 3 to 4 hours. It's not reflecting immediately. Even GPO changes also same. it's reflecting later. But we are looking forward to doing it with Powershell only.
Could you please confirm the late changes won't create any problem?
I am looking forward to hearing from you.
Hi Experts,
Changes reflecting in 3 to 4 hours.
Could anyone confirm is it the expected behavior
Waiting for your response
@Ian_Xue
Hi Ian
Do you meant I am doing the changes in both powershell and group policy ?
Even after restart also its not refelecting faster
Waiting for your reply