使用Windows Script自動新增網路印表機!
將下面內容存成 .vbs檔後執行即可:
說明:此處192.168.10.1是共享pinter server的IP位址,後面接印表機共用名稱;預設印表機設定為--> "pdfFactory Pro"
On Error Resume Next
Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\\192.168.10.1\HPOJK7108"
WshNetwork.AddWindowsPrinterConnection "\\192.168.10.1\HPDJ5600"
WshNetwork.AddWindowsPrinterConnection "\\192.168.10.1\HPDJ1280"
WshNetwork.AddWindowsPrinterConnection "\\192.168.10.1\HPDj1280"
WshNetwork.AddWindowsPrinterConnection "\\192.168.10.1\HPLJ1300"
WshNetwork.AddWindowsPrinterConnection "\\192.168.10.1\HPCLJ1600"
WshNetwork.AddWindowsPrinterConnection "\\192.168.10.1\HPLJ2300"
WshNetwork.SetDefaultPrinter "pdfFactory Pro"
MsgBox "新增網路印表機完成!"