I'm having an issue on my server when working with my VM guests, and I think its due to a recently installed update. What is the correct command to uninstall Windows Updates from either the command prompt, or Powershell?
To obtain a list of installed patches you can do:
wmic qfe list
To uninstall a listed patch, you do:
wusa /uninstall /kb:<kbnumber>
Here are some links with more information:
Note: the 934307 KB article says that you can't use /uninstall on Windows 2008 - this does not apply to Windows 2008 R2 - they enabled the uninstall switch on R2 (see the last link).
On Windows 10 the /quiet no longer works. You may use:
$SearchUpdates = dism /online /get-packages | findstr "Package_for" $updates = $SearchUpdates.replace("Package Identity : ", "") | findstr "KBXXXXXX" #$updates DISM.exe /Online /Remove-Package /PackageName:$updates /quiet /norestart