Hi,
80020005 is the error code which occurs when I try to run a VBScript. Usually, I used MapNetworkDrive or SetDefaultPrinter methods to get access to log-on. Please advise on how to resolve this concern. Thank you.
Â
Â
Â
Â
Â
Error:
Windows Script Host   Â
Script: E:EzineScriptsezine3MapNetworkDrive   Â
Line: 9Â Â Â Â
Char: 1Â Â Â Â
Error: Type mismatch   Â
Code:Â 800708CA
Source: WSHNetwork.MapNetworkDrive   Â
Â
Question regarding VBScript error – 800708CA
Â
Hi,
This error arises when we execute a VBScript. Your logon script is possibly using a process called MapNetworkDrive or SetDefaultPrinter.The apparent situation is that you are trying to create a Windows logon script.
What has occurred here is there are loads of arguments in your VBScript method. The MapNetworkDriveMethod only requires a drive letter and a RemotePath. Look into the Source, to know which method is creating error, for instance, MapNetworkDrive method or SetDefaultPrinte method. Look into the number of arguments needed by the script method and match up to with arguments that you used in your script. For instance, alter WShNetwork.- MapNetworkDrive – DriveLetter, strRemoteName – RemotePath.
To: WShNetwork. – MapNetworkDrive – DriveLetter- RemotePath
Search for hints in the Line number, by the way, char: 1 is not useful; this type of fault only traces the first character although the error is more next to the line.