How to add network printer for all local users systemwide (windows)

26 08 2008

There are situations when you need some network printer to be available for all users of Windows running server or PC (terminal users for ex.). Dirty hack after the break ;o)One of possible ways doing it is running following commands sequence:

rundll32 printui.dll,PrintUIEntry /ga /c\\{YOUR_SERVER_NAME} /n\\{PRINTER_SERVER_NAME}\{PRINTER_SHARE_NAME}
start /wait sc \\{YOUR_SERVER_NAME} stop spooler
start /wait sc \\{YOUR_SERVER_NAME} start spooler

it will add required printer to global context and then restart local print spooler service


Actions

Informations

Leave a comment

You can use these tags : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>