How to add network printer for all local users systemwide (windows)
26 08 2008There 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