Troubleshooting Code 80041006 - Insufficient Memory
Introduction to Code 80041006
Error code, 80041006 says Insufficient Memory. However the cause is likely to be a typo. The system then gets exhausted looking for a non-existent object. This error often occurs when you execute a VBScript connecting to WMI
(Windows Management Instrumentation).
This error is most likely a
spelling error, therefore, check the names of the objects. A variation of the problem is that you could be trying to use a class that does not exist. For example Win32_Services is
incorrect, it should be the singular, Win32_Service.
The Symptoms you get
The script does not manipulate the WMI object as you had hoped, instead you get a Windows Script Host error message.
The Cause of Code 80041006
The cause of this error is not memory, but memory is masking another problem such as a typing mistake. My guess is that your VBScript contains a misspelled object name. Incidentally, code 80041006 is an
unusual error in that a number is returned in the Source: rather than 'Syntax Error' or
other message. See more on Diagnosing VBScript errors here.
The Solutions
Check the class definitions in the WMI section of the your script, check for extra letters, plurals can be a
particular problem, e.g. system or systemS.
Example of Error Code 80041006 ScriptNo Specific example, but this error is very similar to: Error Code 8004100E and Error Code
80041010 also Error Code 80041002 |