Uninstalling updates

In addition to installing updates, PowerShell and the Windows update client can also uninstall updates. This is occasionally necessary when an installed update causes an unexpected result or compatibility issue.

The uninstall process for updates is similar to the installation process. The main difference here is that we are searching for only one update or a subset of updates, and then calling the UnInstall command.

Getting ready

In this recipe, we are working with a Windows client that has installed updates. We have already identified that we wish to uninstall the update titled Update for Office File Validation 2010 (KB2553065), 64-bit Edition.

How to do it...

Carry out the following steps to uninstall the updates:

  1. List the installed ...

Get Windows Server 2012 Automation with PowerShell Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.