I hate to dig up an old topic, but I was just wondering. I see this script will connect this user to a particular printer specified in the vbs. (yay for roaming profiles) Would it be necessary to add coding that would check if the printer is allready connected or not. If connected, do nothing. If not connected, connect to \\server\printer
Main Topics
Browse All Topics





by: lanman2Posted on 2003-12-18 at 12:23:48ID: 9967015
If the printer is on a share that i saccessible to those users, you can have their login script map the printer...
---------- ---------- ---------- ---------- ----- ipt.Networ k") ame>" erConnecti on PrinterPath er PrinterPath ---------- ---------- ---------- ---------- -----
Example file: Printer.vbs
--------------------------
Set WshNetwork = WScript.CreateObject("WScr
PrinterPath = "\\<Server>\<PrinterShareN
WshNetwork.AddWindowsPrint
WshNetwork.SetDefaultPrint
--------------------------
Then just add the path to the vbs file in the logon script (so the file is run when they logon)
If your computers are named according to their respective departments you can even add an if condition or case statement to that and map their closest printer.