Troubleshooting Code 800A0005 - Invalid procedure call or argument
This error code, 80071392 occurs when
you mistype a keyword or method. Code 800A0005 is an easy error to solve.
Introduction to Error Code 800A0005
This runtime error, 800A0005 occurs when you execute a VBScript.
My suggestion is that there is a VBScript does not understand a keyword that
you are using in your script.
The Symptoms You Get 800A0005
The script does not execute as you
hoped, instead you get a WSH error message.
One possibility is that you are using a WSH object or method that has
The Cause of Error 800A0005
Your VBScript contains an illegal method, probably due to a typing mistake, an
extra letter. Check the spelling of your objects. Note Source: Microsoft VBScript
Check the spelling of your variables and methods. Look for clues particularly the Line: number and
check the Char: references. In the example it is Line 3.
Char : 1. In this instance the: 'Error: Type mismatch: 'Createbject''
tells us where the mistake is to be found. In the case of runtime errors you can use this work around.
Add this line: On Error Resume Next.
Example of VBScript with 800A0005
Createbject- Missing letter o
Createobject - Corrected, o inserted
Set nets = Createbject("WScript.Network")
nets.AddWindowsPrinterConnection "\\lucy4\dotty", "Dot Matix"
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.