Avatar of TechInTheWoods
TechInTheWoods
Flag for United States of America asked on

Powershell to remove a printer from a list of machines

Hello,

I have a list of Windows 10 machines in a text file that I need to remove a printer named "Prt-lkm" from.

I need Powershell to loop through each machine in the list and remove that printer. I have tried a couple of iterations, but I'm missing something in each.

What is the best way to do this?
PowershellPrinters and ScannersWindows 10Windows OS

Avatar of undefined
Last Comment
TechInTheWoods

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Darrell Porter

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
TechInTheWoods

ASKER
Awesome, thanks! Worked great.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck