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.
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 Script
No Specific example, but this error is very similar to:
Seven General Troubleshooting Strategies for 800 Errors
See More Windows Update Error Codes 8004 Series
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.
Do you need additional help?
- For interpreting the WSH messages check Diagnose 800 errors.
- For general advice try my 7 Troubleshooting techniques.
- See master list of 0800 errors.
- Codes beginning 08004…
- Codes beginning 08005…
- Codes beginning 08007…
- Codes beginning 0800A…
Give something back?
Would you like to help others? If you have a good example of this error, then please email me, I will publish it with a credit to you:
If you like this page then please share it with your friends