Computer Performance, Windows 2003, Exchange 2003, Logon Scripts

Code 800704CF - The network location cannot be reached

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.Error 800704CF The network Location cannot be reached.

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

' End of Example VBScript.

Here is another Example of error 800704CF

 

 

' 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

 


Computer Training Software - Recommended Training VideosGuy Thomas recommends Computer Training Software.  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.


Do you have a good example of this error?  If so, then email me I will publish it with a credit to you:

Do you need extra help?

For interpreting the WSH messages check Diagnose 800 errors.

For general advice try my 7 Troubleshooting techniques

 


Download my Logon Script eBook for only $6.25

Logon ScriptThe 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.

  Jumbo Script 7 Package

 *


Google

WebComputerperformance.co.uk

GFi Events Manager

Guy Recommends: GFi EventsManager

Here is a solution to monitor, manage and archive thousands of events that are generated by devices across your entire network.  Get your free evaluation copy of GFI EventsManager.

 

Home Copyright © 1999-2008 Computer Performance LTD All rights reserved

Please report a broken link, or an error.