I am trying to setup a logon script on SBS 2003 that maps users Home drives on their workstations. I verified the path is correct and yet still get the error. Any ideas?
Option Explicit
Dim objNetwork
Dim strDriveLetter, strRemotePath, strUserName
strDriveLetter = “H:”
strRemotePath = “\\Amicuscuriae\users\%username%”
‘ Purpose of script to create a network object. (objNetwork)
‘ Then to apply the MapNetworkDrive method. Result H: drive
Set objNetwork = WScript.CreateObject(“WScript.Network”)
‘ Here is where we extract the UserName
strUserName = objNetwork.UserName
objNetwork.MapNetworkDrive strDriveLetter, strRemotePath _
& “\” & strUserName
‘ Extra code just to add a message box
WScript.Echo ” Launch Explorer, check: “& strDriveLetter
WScript.Quit
‘ End of MapNetworkDrive Example logon script.