Initiate Printer Creation From Command Line in Windows
- July 7th, 2015
- Write comment
To setup a network printer that is created and shared on SERVERNAME:
RUNDLL32.EXE printui.dll,PrintUIEntry /in /n\\SERVERNAME\PRINTERSHARENAME
To set that printer as the default printer:
RUNDLL32.EXE printui.dll,PrintUIEntry /y /n\\SERVERNAME\PRINTERSHARENAME
This can be useful to help somebody get a printer connected easily using a script.
More info: https://technet.microsoft.com/en-us/library/ee624057.aspx