batch printer removal

June 30, 2009 at 10:23:47
Specs: Windows XP, AMD/4 GB
I am not always on the same network and thus want to use batch files to set up and remove network printers like I do network drives.
Setup is supposed to be:
rundll32.exe printui.dll,PrintUIEntry /in /n\\<servername>\<printername>

But what about removing them?

(message moved from regular Windows XP fourm)

See More: batch printer removal

Report •

June 30, 2009 at 14:19:22
CreateObject("WScript.Network").RemovePrinterConnection _
  "<servername>\<printername>", True, True

Report •
Related Solutions

Ask Question