r/PowerShell • • Jan 13 '20

Network Printer Driver Nuker - Deletes all network printers & their drivers, then remaps the printers

https://github.com/Justin-Lund/Printer-Remapper
221 Upvotes

47 comments sorted by

View all comments

Show parent comments

3

u/williamt31 Jan 14 '20

Getting tired, I forgot to mention I even dis-joined/re-joined the machine to domain just to make sure it re-applied policies, deleted driver files, clearing spool32, even tried copying driver files from my pc at one point. yeah, super weird.

5

u/jrodsf Jan 14 '20

Definitely sounds like a nuke-it-from-orbit kinda situation.

2

u/Dsraa Jan 15 '20

Edited.....

Now that I think about it, it sounds like a registry profile issue. The printer in question probably had a corrupted registry key under her profile that needed clearing.... That would be my guess, probably could do a WMI query and c clear it that way.

1

u/williamt31 Jan 16 '20

I know more about WMI today then I've ever known but I still don't know near enough to poke around at it. Wish I knew more, but no time.

1

u/BDRfox Jan 14 '20

Reimage the laptop? There are times where I have done EVERYTHING and problem still exists.

I've got scripts to back up user profile so the user doesn't feel like it's the end of the world like they always do :P