Windows auto update options have to disable through Poweshell

Anonymous
2023-09-13T16:31:00+00:00

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

Windows for business | Windows Server | User experience | PowerShell

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.

0 comments No comments
{count} votes
Accepted answer
  1. Anonymous
    2023-09-15T08:45:37+00:00

    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

    2 people found this answer helpful.
    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-09-14T06:19:09+00:00

    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

    0 comments No comments
  2. Anonymous
    2023-09-14T08:09:34+00:00

    @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.

    0 comments No comments
  3. Anonymous
    2023-09-14T11:51:43+00:00

    Hi Experts,

    Changes reflecting in 3 to 4 hours.

    Could anyone confirm is it the expected behavior

    Waiting for your response

    0 comments No comments
  4. Anonymous
    2023-09-15T08:59:17+00:00

    @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

    0 comments No comments