Installing Printers for All Users

Thursday, September 14th, 2006 | Tech Help

Do you ever get tired of installing the department printer for each user of a PC?  Has your attempts to educate your users ended in frustration?  Well thanks to a neat little tool built right into Windows, your troubles are over.

The command line tool is call rundll32.exe printui.dll.  To get a complete list of options for this tool type:

rundll32.exe printui.dll, PrintUIEntry /?

The commands we are specifically looking at are the /ga & /gd options.  These globally (all users on the PC) add or delete printers.  Lets look at the usage of the command.

rundll32.exe printui.dll, PrintUIEntry [options]

Lets give an example of the complete command.

rundll32.exe printui.dll, PrintUIEntry /ga /n \\printserver\finance

Here we are globally adding (/ga) a printer in the finance department.  The printer (\finance) is located on the server \\printserver.

If we wanted to globally delete (/gd) the printer we would make the simple change below.

rundll32.exe printui.dll, PrintUIEntry /gd /n \\printserver\finance

You can then add these command lines to a batch (.bat) file and run it on all the PCs in the finance department and no matter where an employee in the finance logs in they will have access to the finance printer.

There are many more options available using printui.dll and rundll32.exe.  Please feel free to share your usage of the command with the readers here.

Tags: , ,

No comments yet.

Leave a comment

To comment please enter the code you see below



Catagories

Recent Photos

Keely and her Godparents 02.jpgMay 31 2008 21.jpgKeely and her Godparents 10.jpgKeely and her Godparents 06.jpg
May 31 2008 13.jpgMay 31 2008 27.jpgMay 31 2008 08.jpgKeely and her Godparents 04.jpg
Keely and her Godparents 09.jpgKeely and her Godparents 01.jpgMay 31 2008 17.jpgKeely and her Godparents 13.jpg
Keely and her Godparents 14.jpgMay 31 2008 24.jpgMay 31 2008 22.jpgMay 31 2008 02.jpg