Если надо подключить один или несколько принтеров через скрипт, можно использовать вот это решение:
Adding a network printer from the command line (or bat file)
@Echo Off
REM Change \\COMPUTER\PRINTER by your printer's UNC
@Echo Off
REM Change \\COMPUTER\PRINTER by your printer's UNC
REM Add printer
rundll32 printui.dll,PrintUIEntry /in /n\\COMPUTER\PRINTER
rundll32 printui.dll,PrintUIEntry /in /n\\COMPUTER\PRINTER
REM Set printer as default
rundll32 printui.dll,PrintUIEntry /y /n\\COMPUTER\PRINTER
rundll32 printui.dll,PrintUIEntry /y /n\\COMPUTER\PRINTER
Work 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
Using VBS script
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServ\Canon"
WshNetwork.SetDefaultPrinter "\\PrintServ\Canon"
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\PrintServ\Canon"
WshNetwork.SetDefaultPrinter "\\PrintServ\Canon"