Install network printer windows 7 command line
Adding a Network Printer from the command line (or bat file)
Adding a Network Printer from the command line (or bat file)
Using VBS script
Create a file *.vbs
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServer\Canon"
WshNetwork.SetDefaultPrinter "\\PrintServer\Canon"
WshNetwork.AddWindowsPrinterConnection "\\PrintServer\Canon"
WshNetwork.SetDefaultPrinter "\\PrintServer\Canon"
Create a file *.bat run as administrator
(Adding printer)
rundll32 printui.dll,PrintUIEntry /in /n \\PrintServer\Canon
rundll32 printui.dll,PrintUIEntry /in /n \\PrintServer\Canon
(Set printer as default)
rundll32 printui.dll,PrintUIEntry /y /n \\\\PrintServer\Canon
rundll32 printui.dll,PrintUIEntry /y /n \\\\PrintServer\Canon
Working on:
Windows Server 2008 R2, Windows Server 2008 ,Windows Server 2003
Windows 7 ,Windows Vista ,Windows XP ,Windows 2000
Windows Server 2008 R2, Windows Server 2008 ,Windows Server 2003
Windows 7 ,Windows Vista ,Windows XP ,Windows 2000