Hi, I have a vb script log on script which I am calling from Group Policy and running on Vista Clients. I get the following error when trying to map a network drive in the script:
"The specified network resource or device is no longer available."
Please see attached code... your help would be appreciated, thanks
If (IsMember("STUDENTS") = TRUE) Then
strUNCPath = "\\server1\students$\" & strUserName
Wscript.echo "You are logged in with a Student account"
strUNCPath = "\\server2\STAFF$\" & strUserName
Wscript.echo "You are logged in with a Staff account"
objNetwork.MapNetworkDrive strDriveLetter, strUNCPath