Code 800704B3 – No network provider accepted the given network path

Troubleshooting Code 800704B3 – No network provider

Introduction to Error Code 800704B3

This error code, 800704B3 occurs when you try to map a network drive with a VBScript.  You are probably using a WSH method called MapNetworkDrive.Code 800704B3 No network provider accepted the given network path

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 create a Windows logon script.

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

The Cause of Code 800704B3

Either the ServerName in your script does not exist, or it is offline at this time.  There are two clues in the Windows Script Host message box,

Note Error: No network provider…… .

Note the Source : WSH.Network.MapNetworkDrive.

Tim’s Suggestion
The error could be caused by a slow network card.  Symptoms, the script works the second time you run it.

Guy / Tim suggested solution add a sleep command for example:
WScript.Sleep 500

  ‡

The Solutions

In the example you would check Line 14 in the script that references the ServerName.  PING the ServerName, open a CMD shell and type: net view.  Look for clues particularly the Line: number.   Char 1: often lies! it just means that the whole line will not execute. In the case of runtime errors you can use this work around.  Add this line: On Error Resume Next.

A nasty variation of this error is where you add an extra \slash\ in the path. 
See Example 2.

Example 1 of Error 800704B3

Note the error – \\ServerName does not exist.

‘ VBScript.

‘ By Guy Thomas

‘ Purpose of script to map a network drive to H:\

Dim oNet

Set oNet = CreateObject("Wscript.Network")

oNet.MapNetworkDrive "K:", "\\Alan\Lazer6"

Dim oNet

‘ Note Lazer6 exists

Set oNet = CreateObject("Wscript.Network")

oNet.MapNetworkDrive "H:", "\\ServerName\home"

Kiwi Syslog Server

Syslog’s success and universal adoption is based on simplicity, it’s just not fussy about what sort of event log messages it carries.  As a result syslog has become the de-facto standard for system management and event reporting in heterogeneous networks.  See more about the free Kiwi Syslog Server network utility

Example 2 of Error 800704B3

Note the error – RemotePath = "\\ alan1\home\" 

it should have one less \slash \\ alan1\home"

Set WshShell = WScript.CreateObject("WScript.Shell")
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set AllDrives = WshNetwork.EnumNetworkDrives()

DriveLetter = "N:" ‘must be capitalized
RemotePath = "\\alan1\home\"

AlreadyConnected = False
For i = 0 To AllDrives.Count – 1 Step 2
If AllDrives.Item(i) = DriveLetter Then AlreadyConnected = True
Next

If AlreadyConnected = False then
WShNetwork.MapNetworkDrive DriveLetter, RemotePath
WshShell.PopUp "Drive " & DriveLetter & " connected successfully."

Else
WShNetwork.RemoveNetworkDrive DriveLetter
WshShell.PopUp "Drive " & DriveLetter & " disconnected."
End if &nbsp

Example 3 for code 800704B3

For intermittent problems, when the script works the second time, add

WScript.Sleep 500

Solarwinds Free WMI MonitorGuy Recommends: WMI Monitor and It’s Free!

Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems.  Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free.  Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.

Download your free copy of WMI Monitor


Do you need additional help?

Give something back?

Would you like to help others?  If you have a good example of this error, then please email me, I will publish it with a credit to you:

   

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

If you like this page then please share it with your friends