Hello
I have not had much programming experience especially with VBS. I have been asked to write a script which checks what AD group a user is in and then runs a specific drive mappings for that group and user, also i need the script to check the date. This is needed so that (for example) on Friday when the user logs on they recieve additional drives or an application starts.
This is what i have so far............
on error resume next
Dim WshNetwork, strUserName
Set WshNetwork = CreateObject("WScript.Network")
strUserName = wshnetwork.Username
wshnetwork.MapNetworkDrive "w:", "\\Server_name\Departments"
If IsMember(WshNetwork.username, "user_name") Then
wshnetwork.MapNetworkDrive "z:", "\\Server_name\departments\user_name"
wshnetwork.MapNetworkDrive "I:", "\\Server_name\Another_folder"
wshnetwork.MapNetworkDrive "O:", "\\Server_name\Another_folder"
wshnetwork.MapNetworkDrive "P:", "\\Server_name\Another_folder"
wshnetwork.MapNetworkDrive "V:", "\\Server_name\Another_folder"
End if
wscript.quit
.................................
This works fine for me (one person) what i need to get is instead of it just running for me i need it to check the group. Also i need to check the date so that if the date is, for example, Friday they get an app open when the user logs on.
I hope this makes some sence to someone as i think i lost myself while typing!!! :o
Any help would be appriciated
Thank you
Gareth Collins