Linux-Noob Forums

Full Version: Add Printer from batch file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

You can add these in batch scripting or logon scripting to aid in the adding and deletion of printers.

 

add printer

rundll32 printui.dll,PrintUIEntry /in /n \\server1\1220C

 

delete printer

rundll32 printui.dll,PrintUIEntry /dn /n \\server1\PRT4


This works great for the use of Active Directory and Windows Administration with Network Users.

 

I use this on a daily basis. Very very helpful.