Troubleshooting Code 800704B0 - The specified device name is invalid
Introduction to Code 800704B0
This error code, 800704B0 usually occurs when you try to map a network drive with a VBScript.
WSH is probably using a method called MapNetworkDrive or AddPrinterConnection. Here is a wild guess, you have omitted the : (colon) on the Drive letter e.g. it should be = "M:" but you entered =
"M".
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.
The Cause of Error 800704B0
The problem is that you made a mistake with the drive letter. It is
not plain "M", it should have a colon and so be "M:" Note that Source: WSHNetwork.MapNetworkDrive gives a
valuable clue. WSH has indicated Line 10, which narrow down the search.
Char 1 is not very helpful in this case. What happens if there is an
error on the line, sometimes Char 1 gets blamed.
Solutions for The specified device name is invalid
Set WshShell = WScript.CreateObject("WScript.Shell")
Set WshNetwork = WScript.CreateObject("WScript.Network")
Set AllDrives = WshNetwork.EnumNetworkDrives()
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.