Share via

Pause windows update with a powershell script

Anonymous
2023-05-17T12:16:23+00:00

Hi,

I am trying to remotley pause windows update using a powershell script.

I have tried installing PSWindowsUpdate module on the remote PC and then running: Set-WindowsUpdateAutoUpdateOption -AutoUpdateOption 2

This didnt work and i am getting that Set-WindowsUpdateAutoUpdateOption is missing.

Then i tried setting this reg key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate to 1.

However, after a restart the settings UI still shows like windowsupdate is not paused.

What is the right method to pause windows upadate through a PS1 script?

Thanks,

Windows for home | Windows 11 | Windows update

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.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-05-17T12:47:51+00:00

    Hi, I'm Elise, and I'd be happy to help with your issue.

    For this type of issue I would recommended posting in the Q&A or Technet forum, as this is the intended audience for these type of queries:

    https://learn.microsoft.com/answers/

    https://social.technet.microsoft.com/Forums/

    Kind Regards,

    Elise

    Was this answer helpful?

    0 comments No comments