Troubleshooting Code 800704CF - The network location cannot be reached
Introduction to error Code 800704CF
This
error code, 800704CF occurs when you try to map a network drive with a VBScript. You are
probably using a WSH method called MapNetworkDrive. A wild guess, check the spelling of the servername in the strRemotePath.
The Symptoms you get
The script does not execute as you
hoped, instead you get a WSH error message. The probable scenario is that you are trying to
MapNetworkDrive in a Windows logon script.
Note: This is message is similar to: 800704B3 - No network provider. The difference is that 800704CF indicates a problem with server, while 800704B3 means there is
a problem with the share name.
I found that 'The network location cannot be reached', means that you have misspelt the servername. Alternatively there could be a routing problem. Try tracert or Ping. Note the Source: WSHNetwork.MapNetworkDrive, it is trying to pinpoint the problem
method.
The Solutions
If this were your script, check the Line 17. Microsoft say that the TCP/IP NetBIOS Helper service has not started on the client. Worth a look in your services (but I am not convinced).
Check your firewall. Try pinging the
server, which you are trying to map the drive letter.
In
the case of runtime errors you can use this work around. Add this line:
On Error Resume Next. However, I would concentrate on finding out more about the server.
Example of Script with 800704CF
In this case the error is here: strRemotePath =
"\\alana\home" The problem is that the server is really called alan not alana.
' MapNetworkDrive.vbs ' VBScript to map a network drive. ' Author Guy Thomas http://computerperformance.co.uk/ ' Version 3.1 - April 24th
2005 ' -----------------------------------------------------------------' Option Explicit Dim objNetwork Dim strDriveLetter, strRemotePath, strUser, strPassword
' Purpose of the script to
create a network object. (objNetwork) ' Then to apply the MapNetworkDrive method. Result K: drive Set objNetwork = WScript.CreateObject("WScript.Network") strDriveLetter = "W:" strRemotePath =
"\\alana\home" strUser = "guyt" strPassword = "Pauline1" objNetwork.MapNetworkDrive strDriveLetter, strRemotePath, false, strUser, strPassword
' Extra code just to add a message box
WSCript.Echo " Launch Windows Explorer, check: "& strDriveLetter
' OnErrResNext.vbs - Map Network Drive to Q: and V: ' VBScript to test On Error Resume Next. ' Author Guy Thomas
http://computerperformance.co.uk/ ' Version 1.2- April 24th 2005 ' -----------------------------------------------------------------' Option Explicit Dim objNetwork, strRemotePath1, strRemotePath2,
strError Dim strDriveLetter1, strDriveLetter2 , errLogonScript Err.clear err.number = vbEmpty strError = 2 strDriveLetter1 = "Q:" strDriveLetter2 = "V:" strRemotePath1 = "\\lucy4\data\"
strRemotePath2 = "\\alans\downloads" Set objNetwork = CreateObject("WScript.Network") objNetwork.MapNetworkDrive strDriveLetter2, strRemotePath2
Wscript.Quit
' End of Script
Try
a different solution, download SolarWinds ipMonitor
Here is my thinking,
ipMonitor will give you valuable data about your network and servers.
This extra information just may unlock the solution to your error code.
One more thing, sometimes when troubleshooting you go around in circles;
therefore if you try a different, but related approach, you may just crack the
problem.
Free Download
of SolarWinds ipMonitor
Their topics and material are ideal for getting you started with VBScript. The
videos are easy to follow and you can control the pace. Try their free demo material and then see if you want to buy the full package.
See more about VB Script Training CD.
The extra features you get in your eBook
include, more pages full of detailed examples. Also, ten 'how to...'
sections, with screen shots showing which menus to use. Go for Guy's
eBook - and get a printable version with copy enabled and no expiry date.