Remove mapped network printers using batch

If you have to remove a printer que from you clients computers, using a logon script, you can do the following:

@echo off

ECHO Attempting to disconnect mapped printers...
rundll32 printui.dll,PrintUIEntry /dn /q /n"\\SERVER\PRINTER"

ECHO Attempting to logoff from server...

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.