G
Guest
I am using GP to run a logon script. I am really really new to scripting and
would appreciate any help provided.
I want to write a script that will disconnect all network drives, then
based on user group map certain drives for each user group as they log into
our terminal server.
Atm I only have this script
' VBScript.' Timothy Hasty January 2005.
'
' Purpose of script to map various drives for WAN Clients
' ******************************
Dim objNet
on error resume next
Set objNet = CreateObject("Wscript.Network")
on error resume next
objNet.MapNetworkDrive "F:", "\\data\f"
on error resume next
objNet.MapNetworkDrive "G:", "\\dc2\g"
on error resume next
objNet.MapNetworkDrive "H:", "\\dc2\h"
on error resume next
objNet.MapNetworkDrive "O:", "\\dc1\optical"
on error resume next
objNet.MapNetworkDrive "S:", "\\data\s"
on error resume next
objNet.MapNetworkDrive "W:", "\\data\w"
on error resume next
WSCript.Quit
If anyone can help me I would appreciate it greatly.
I will have 3 groups of users. 04 coroporate. Locations, and LLC
would appreciate any help provided.
I want to write a script that will disconnect all network drives, then
based on user group map certain drives for each user group as they log into
our terminal server.
Atm I only have this script
' VBScript.' Timothy Hasty January 2005.
'
' Purpose of script to map various drives for WAN Clients
' ******************************
Dim objNet
on error resume next
Set objNet = CreateObject("Wscript.Network")
on error resume next
objNet.MapNetworkDrive "F:", "\\data\f"
on error resume next
objNet.MapNetworkDrive "G:", "\\dc2\g"
on error resume next
objNet.MapNetworkDrive "H:", "\\dc2\h"
on error resume next
objNet.MapNetworkDrive "O:", "\\dc1\optical"
on error resume next
objNet.MapNetworkDrive "S:", "\\data\s"
on error resume next
objNet.MapNetworkDrive "W:", "\\data\w"
on error resume next
WSCript.Quit
If anyone can help me I would appreciate it greatly.
I will have 3 groups of users. 04 coroporate. Locations, and LLC