Remove Deployed Printers After Server Died

We have a couple of printers still being mapped to users. They show up under the relevant GPO under:

User Configuration - policies - windows settings - Printer Connections

I do not see a way to manually remove things there, though. Under Group Policy Management, if I edit the GPO, that last part of the path "Printer Connections" does not exist. I can only see this under the Settings tab when I do not edit.

I need to remove these printers that were deployed using Printer Management on a Windows 2008R2 server. How to do so?
Who is Participating?
Jason WatkinsConnect With a Mentor IT Project LeaderCommented:
Can you set the GPO setting to "Disabled" instead of "Not Configured"? This should undo whatever group policy did and remove the connections.
cajxAuthor Commented:
I'd rather not do that because I have other legitimate printers being pushed out on the same GPO. Is there another way to only remove the ones I want to remove?
Jason WatkinsIT Project LeaderCommented:
I can't see a way around it with just a GPO. You'll have to use a script like the following.

' Remove all network printers

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer Where Network = TRUE")

For Each objPrinter in colInstalledPrinters

Option 2:

' Remove Printers by name

Set objNetwork = WScript.CreateObject("WScript.Network")
objNetwork.RemovePrinterConnection "\\PrintServer\xerox3006"

(Taken from:
cajxAuthor Commented:
OK. I'd be tempted to remove them with the script by name, but then they are still going to show up in this GPO. I guess if there is no way to edit the GPO, I am forced to kill it.

I keep seeing people speak well of pushing printers out in the GPO under the area of:

Preferences - Control Panel - Printers

Never have I tried that before, but now I see a good reason to do so. It seems like you have much more control in the event of a server disappearing.

Thanks for the help!
Jason WatkinsIT Project LeaderCommented:
My pleasure. Glad to help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.