Network Printer Reappears

  • Thread starter Thread starter Jim Burns
  • Start date Start date
J

Jim Burns

I have a network printer that I delete, but every time I restart my
machine the printer is back. I searched the Registry and startup
folders, but don't see any reference to the printer.

Thanks,
Jim
 
Look at Bruce Sanderson's website, "Adding a network printer for all Users"
From that you should be able to remove the printer.

Regards,
Christoph Lindemann
 
I ran a script once to add the printer (text below) but since deleted it.

Set objNetwork = Wscript.CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "\\ServerName\PrinterName"
 
Christoph,

I previously ran this command to add a printer, but didn't stop and
restart the spooler service, so I thought it didn't work:

rundll32 printui.dll,PrintUIEntry /ga /n\\ServerName\PrinterName

Apparently it worked better than I thought. I ran the above command
with the /gd switch, and the printer is gone.

Thanks!
Jim
 
The /ga function will add the information about the printer to the computer,
but that information will not be read and acted on immediately. One of the
following actions has to take place to make use of the new printer
information:

1. restart the spooler service (and the Printers and Faxes window is
refreshed if it is open)
2. a user logs on

This could be done seconds, minutes, hours or days after the /ga function is
used.

So, if a user is already logged on and wants to use the just added printer,
restarting the spooler service means they don't have to logoff, then logon
again to be able to use the printer.
 
Thanks, Bruce. And apparently, after I added the printer using /ga,
deleting it for just one user (while logged on as myself) did little
to actually remove the printer.
 
When a printer is added using the /ga function, its added to the computer,
not the user - that's what it's supposed to do. So, "deleting" it in
Printers and Faxes does not delete the printer from the computer. The next
time some logs on, it will be there.

To delete a printer added using /ga, use /gd; this will delete the printer
from the computer and no users will have it.
 
Back
Top