troubleshooting Question

Uninstall KB via Powershell on PC's in a list

Avatar of samiam41
samiam41Flag for United States of America asked on
Windows OSInstallationPowershell
10 Comments3 Solutions17 ViewsLast Modified:

Hey Experts.  I need to uninstall Windows patches (5005033, 5103, 5031) while I work to resolve the printer installation process here.  To expedite the uninstall process, I've identified the KB's responsible and which PC's are affected.  However the Powershell script I'm attempting to build is not coming along as smoothly as I thought and due to time constraints, I need your help.

So far, I've been testing this:

$myComputers = Get-Content
foreach ($computer in $myComputers) {
 Uninstall-HotFix -ComputerName $computer
-HotfixID KB123456}

But I wanted to at least output whether the update was successfully uninstalled.  Any help on how to modify this to output the results?

Join our community to see this answer!
Unlock 3 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros