1

I was wondering if anybody had any advice on this.

I had a network printer that was deployed via GPO to client machines running Windows 7 in a mixed 2003-2008 environment. There was also a local startup script that was making the printer be the default one for users. Just to provide more context, the client machines were imaged, so when the first user logged on, they got the "install printer driver prompt" and it was installed for everyone.

The printer died so I removed it from GPO and from the domain but individual users still see the printer as offline under Devices. How do I completely remove any trace of this printer for all users on a machine?

These are the things I have tried:

  1. Used psexec to run printui.dll to remove per machine connections. It fails saying it is unable to remove it and asks me to check the connection to the printer.

  2. I deployed a vbs script via GPO that looked like below:

      Option Explicit

      Dim objNetwork, objPrinters
      Set objNetwork = CreateObject("WScript.Network")
      Set objPrinters = objNetwork.EnumPrinterConnections

      ' ### Delete selected network printer
      Dim sPrinterName
      sPrinterName = "\\PDC\HP LaserJet 8000 Series PCL 5"
      objNetwork.RemovePrinterConnection sPrinterName, True, True

No luck.

  1. I also tried deleting the key HKEY_CURRENT_USER\Printers\Connections with the value ,,PDC,HP LaserJet 8000 Series PCL 5 for all users. It still shows up under some users.

Is there a way to wipe every record for this printer from the local machines?

Thank you.alt text

2 Answers 2

1

If your functional level is at 2008, you have access to GPO Preferences. In the Users GPO, under Windows Preferences -> Control Panel -> Printers, you can specify a policy to remove specific printers. I've used this to clear out dead shared printers for lab stations.

1
  • Thank you. One problem though is that the printer path is grayed out with the Delete action selected. I have replaced the old printer and the new one has the same ip as the old one so what I'm hoping this will achieve is remove the printer only if it matches ip and name. See screenshot above.
    – Bourne
    Oct 26, 2010 at 22:45
-2

you have to remove it from gpo first, i had same issue before. after remove it from gpo, it will be gone from client pc automatically.

1
  • No, not necessarily. Depends on the GPO's configuration. Apr 9, 2014 at 16:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .