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.
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.
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  
Example 3 for code 800704B3
For intermittent problems, when the script works the second time, add
WScript.Sleep 500
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.