Thursday, September 3, 2009

Network Printer Install to All Users

I had a script a few years ago that would lee me install network printers to all users of the computer at one time.  I lost it recently and had to find it again so I am posting it here so I know exactly where to go next time I loose it. 

Just put the unnumbered lines in a .bat file, change to suit your network and run.  

1) This installs printer quietly

rundll32 printui.dll,PrintUIEntry /in /q /n\\servername\printername

2) This deletes the networked printer from the machine being logged onto, and does so quietly. 
rundll32 printui.dll,PrintUIEntry /dn /q /n\\servename\printername

3) This Sets the default printer 
rundll32 printui.dll,PrintUIEntry /y /n\\servername\printername

Posted via email from Musings, Ramblings and Other Assorted Rubbish

No comments: