Disable Windows Update on Windows Server 2012


I have multiple servers that are all running a management software that handles patch management. I would like to run a script that via powershell that will disable the windows update service so that it and my patch management software are not always arguing on who gets to install which patch.

Any assistance would be appreciated.

Christopher GayIT Operations ManagerAsked:
Who is Participating?
Rich WeisslerProfessional Troublemaker^h^h^h^h^hshooterCommented:
There is a script to do this in the Microsoft Gallery: https://gallery.technet.microsoft.com/scriptcenter/Configure-Windows-Updates-cd6c674a

Did you already discount the option of configuring this with Group Policy?
Christopher GayIT Operations ManagerAuthor Commented:

No, actually I hadn't. I'm ashamed to admit that it didn't even occur to me. Thank you so much for your quick response.
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Setting the start type can be done in PowerShell with running just Set-Service wuauserv -StartType Disabled.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.