Link to home
Start Free TrialLog in
Avatar of emconsulting
emconsulting

asked on

Remove Mapped Network Printers for all Domain Workstations with a script

We recently deployed newly named network printers using Group Policy. We would like to know if there is a way to remove the "old mapped network printers" that are installed using a script for all the domain workstations. We will be running the script using N-Able by selecting all the workstations we would like the printers removed from and then running the script against each of those workstations.
SOLUTION
Avatar of John Salle
John Salle

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of John Salle
John Salle

Made some edits because I had extra parts of the code in there that aren't needed. That's what I get for pulling pieces from different scripts I have.

One thing to note is that printer maps are profile specific. So if you have 2 user profiles on one computer you'll have to run this script for each user. It's probably easier to set the "remove printer" script to run on logon in AD instead of trying to push it via an RMM.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Spike99
Spike99
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of emconsulting

ASKER

We were able to use a script to resolve this issue. Thank you.
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.