Installing network printers
I know it has been asked before, but I want to ask again. I'm trying to install network printers (that is on a printer server) by dept. So IT dept printers are ithp4200, ITricoh3400, IThp4700 from printerserver1. Can I do this in a distribution MI or Scripting. Can I see the screen shot and or code too.
Community Chosen Answer
I've used this vb script in the past. I would run it as an Online script as the current logged in user.
ON ERROR RESUME NEXT Set wshNet = CreateObject("WScript.Network") Set wshPrn = wshNet.EnumPrinterConnections For x = 0 To wshPrn.Count - 1 Step 2 If Left(wshPrn.Item(x+1),2) = "\\" Then wshNet.RemovePrinterConnection wshPrn.Item(x+1),True,True Next wshnet.AddWindowsPrinterConnection "\\printserver1\ithp4200" wshnet.AddWindowsPrinterConnection "\\printserver1\ithp4700" wshnet.SetDefaultPrinter "\\printserver1\ithp4200"