Network Printer Reappears

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
 
C

Christoph Lindemann

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
 
J

Jim Burns

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"
 
J

Jim Burns

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
 
B

Bruce Sanderson

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.
 
J

Jim Burns

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.
 
B

Bruce Sanderson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top