title: Mapping 60 printers to one user using VBScript
body: <p>So I need to write a script to map 60 printers for about 20 users on RDS. Problem is the script is only mapping printers to line 14, but it's running until the last line. I know it's runnign to the last line because the last line is: a=msgbox("All printers are mapped. Default printer is set. Click OK to close. Scripting by Nick, donations welcome.")</p>
  
  <p>All humor aside, I was trying to find a way to break my script into multiple scripts with one script calling the rest. If someone has a better idea I'm all eyes!  But here's a sample of the code I'm using:</p>
  
  <p>Dim Net
  Set objNetwork = Wscript.CreateObject("Wscript.Network") 
  objNetwork.AddWindowsPrinterConnection "\printserver\printer name1", "domain\admin", "password"
  objNetwork.AddWindowsPrinterConnection "\printserver\printer name1", "domain\admin", "password"
  objNetwork.AddWindowsPrinterConnection "\printserver\printer name1", "domain\admin", "password"
  objNetwork.AddWindowsPrinterConnection "\printserver\printer name1", "domain\admin", "password"
  objNetwork.AddWindowsPrinterConnection "\printserver\printer name1", "domain\admin", "password"</p>