Login Script Error - 80070035 - Network Path Not Found - TechRepublic
Question
June 4, 2008 at 04:09 PM
jgreer

Login Script Error – 80070035 – Network Path Not Found

by jgreer . Updated 18 years, 1 month ago

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.

This discussion is locked

All Comments