| |
aschwartz
Posts: 12
Score: 0
Joined: 4/30/2008
Status: offline
|
Hi. I am puzzled. I am pretty new with VB and have a challenge.I need to have users in a specific group have their com ports mapped to a server when they are in a citrix session for a certain app they are using. I am able to do this via the net use command, in this syntax: net use com4: \\client\com1: Running this on a session works, the net use results show that. So I could stick that in a bat file and be done, but unfortunately it needs to be done for a specific group. Normally I would use VB script and create a special script that ran only on this group, but I dont know how to run that command in VB. To map a drive, I use the following logic Case "Sales_Sec" WSHNetwork.RemoveNetworkDrive "L:", True, True WScript.Sleep 350 '350 millsecond pause WSHNetwork.MapNetworkDrive "L:", "\\server\Sales",True So that the case is the AD group that is being given the L drive mapping How can I use the same principals to run the net use command?
|
|