N/APosted on - 05/10/2012
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.
Windows Script Host
Error: Type mismatch
Question regarding VBScript error – 800708CA
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.