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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jason WatkinsIT 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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.