Computer Performance, Windows 2003, Exchange 2003, Logon Scripts

Code  80070043 - The network NAME cannot be found

Troubleshooting Code 80070043 - The network name cannot be found

Introduction to error Code  Error 80070043

This error, code 80070043 occurs when you try to map a network drive with a VBScript.  A wild guess: you have mistyped the name of your share name.

The Symptoms you get 80070043Code 80070043 Error The network name cannot be found

The script does not map the network drive as you had hoped, instead you get a Windows Script Host error message, see diagram.

Note: This is similar to: 800704CF - No network provider.  The difference is that error 80070043 indicates a problem with share, while 800704CF means there is a problem with the server name.

The Cause of Code 80070043  

As ever, check the line number referenced by the error message.  One possibility is that you trying to map a network drive and you have misspelt the share name.  The source of the error is WSH.MapNetworkDrive which gives us a big clue where to look for the error. 

Mistyping server names gives a slightly different error. (No network provider could accept the given path)

The Solutions to The network name cannot be forund

Double check the share names with the actual name in your script.  Open a command prompt and type net view.  Alternatively, it could be the server name which is incorrect in which case you could launch the Run dialog box and type \\ server.

Check this section for examples of MapNetworkDrive

Example of Code 80070043 Script

This is a complicated example because the error is reported on line 17.  On close inspection you can see that the variable RemotePath2 was set earlier in the script and that homf is likely to by a typo for home.

 

'VBScript 80070043
'Map Network Drive
'
'on error resume next
Set WshShell = WScript.CreateObject("WScript.Shell")
Set Network1 = WScript.CreateObject("WScript.Network")
Set Network2 = WScript.CreateObject("WScript.Network")

DriveLetter1 = "v:"
DriveLetter2 = "u:"

RemotePath2 = "\\alan\homf"
RemotePath1 = "\\alan\ezine7"


Network1.MapNetworkDrive DriveLetter1, RemotePath1
Network2.MapNetworkDrive DriveLetter2, RemotePath2

'WshShell.PopUp "Drive " & DriveLetter & " connected successfully."


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.