Troubleshooting Code 800704B3 – No network providerIntroduction to Error Code 800704B3This 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 GetThe 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 800704B3Either 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 Guy / Tim suggested solution add a sleep command for example: ‡ The SolutionsIn 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. Example 1 of Error 800704B3Note 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 ServerSyslog’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 800704B3Note the error – RemotePath = "\\ alan1\home\" it should have one less \slash \\ alan1\home" Set WshShell = WScript.CreateObject("WScript.Shell") DriveLetter = "N:" ‘must be capitalized AlreadyConnected = False If AlreadyConnected = False then Else Example 3 for code 800704B3For intermittent problems, when the script works the second time, add WScript.Sleep 500 Guy 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 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. If you like this page then please share it with your friends
|