Can I Decline all WSUS updates from Command Line?

Starting with Windows Server 2012 R2, Microsoft introduced WSUS PowerShell cmdlets. The WSUS cmdlets can be used to perform various administrative tasks from command line. One of them is to decline all updates.

To decline all updates, use below command:

  • Get-WsusUpdate -Classification All -Approval Unapproved -Status FailedOrNeeded | Deny-WsusUpdate

To learn more on WSUS PowerShell cmdlets, refer below link:

About Nirmal Sharma

Nirmal is a MCSEx3, MCITP and was awarded Microsoft MVP award in Directory Services and Windows Networking. He is specialized in Directory Services, Failover cluster, Hyper-V, System Center, Windows Azure, and Exchange Servers and has been involved in Microsoft Technologies since 1994. In his spare time, he offers technical help by writing tips and articles on several web sites. Nirmal can be reached at [email protected].

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top