Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If a regular user has added a printer by going to a share \\share and then right clicked on a printer and then clicked 'connect', how can that be removed by an administrator?

I have tried prnmngr.vbs and rundll32 commands but they do not affect printers added in this way. Is there a way that they can be removed via commandline without the use of a login/logoff script?

This is a Windows XP machine in a server 2003 domain.

share|improve this question
up vote 4 down vote accepted

I've had great luck with

rundll32 printui.dll,PrintUIEntry /dn /q /n\\Server_Name\Share_name
share|improve this answer

Sometimes, the printui.dll method does not work - especially if the printer queue is no longer available on the server or currently not accessible. To remove client-connected printers in these cases, you might consider just deleting the appropriate values from the HKCU\Printers\Connections regkey.

share|improve this answer
Interesting, I've only had issues with removing printers with out a printer queue with cscript %systemroot%\system32\prnmngr.vbs -d -p "\\server_name\share_name". After I found the printui.dll one, I haven't had an issue since. Good key to know however – Nixphoe Jun 16 '11 at 21:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.