WalleyeGuy
Technical User
Hiya All,
I have a logon script that works great on all 'Workstations'. My problem is that now the company I'm at is rolling out Terminal Servers so my logon script needs a tweak and I cannot figure out what (should say how).
For some reason, the company I'm at, wants all network drives unmapped prior to mapping (hmmpf). Anyway, I can get that to work on all workstations, but with the term server they get those 'blank' drives.
Anyway, code is:
Set colDrives = wshNetwork.EnumNetworkDrives
For i = 0 To colDrives.Count -1 Step 2
wshNetwork.RemoveNetworkDrive colDrives.Item(i),_
Force, UpdateProfile
WScript.sleep 100
Next
Not sure how to remove the 'blank mappings' such as...
Drive = \\TSCLIENT\F Where there is no drive letter.
I saw a post that mentioned how to do it, and I cannot find it again here.
Thanks All
I have a logon script that works great on all 'Workstations'. My problem is that now the company I'm at is rolling out Terminal Servers so my logon script needs a tweak and I cannot figure out what (should say how).
For some reason, the company I'm at, wants all network drives unmapped prior to mapping (hmmpf). Anyway, I can get that to work on all workstations, but with the term server they get those 'blank' drives.
Anyway, code is:
Set colDrives = wshNetwork.EnumNetworkDrives
For i = 0 To colDrives.Count -1 Step 2
wshNetwork.RemoveNetworkDrive colDrives.Item(i),_
Force, UpdateProfile
WScript.sleep 100
Next
Not sure how to remove the 'blank mappings' such as...
Drive = \\TSCLIENT\F Where there is no drive letter.
I saw a post that mentioned how to do it, and I cannot find it again here.
Thanks All