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

5

u/williamt31 Jan 14 '20

Had one of the weirdest support tickets I've ever seen couple weeks back, wish I could've tried this.

Printer guy recreated queue and everyone but 1 user could re-install it.

If I logged into her desktop I could install it, on my laptop profile and when she logged into my laptop both could install.

I re-created her profile on her desktop and she still couldn't install.

Kept rotating thru 3 diff errors, couple hex codes and 'Out of memory'. No clue what broke but ended up having to re-image the whole thing to resolve.

0

u/[deleted] Jan 14 '20

[deleted]

1

u/williamt31 Jan 15 '20

She was admin on her machine, not on mine.

1

u/DudeImMacGyver Jan 14 '20 edited Nov 10 '24

edge public wine seemly whole caption many quaint muddle arrest

This post was mass deleted and anonymized with Redact

1

u/MartianMoon Jan 14 '20

That's bizarre, I wonder if this would've fixed it!

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