On Error Resume Next
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.AddwindowsPrinterConnection "\\printerserver1\printer1"
WshNetwork.AddwindowsPrinterConnection "\\printerserver2\printer2"
WshNetwork.SetDefaultPrinter "\\printerserver1\printer1"
MsgBox("打印机已安装成功并已设置为默认打印机")