Computer Performance, Windows 2003, Exchange 2003, Logon Scripts

Code Error 80041006 - Insufficient Memory

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 Script

No Specific example, but this error is very similar to:

Error Code 8004100E

and

Error Code 80041010

also

Error Code 80041002


Computer Training Software - Recommended Training VideosGuy Thomas recommends Computer Training Software.  Their topics and material are ideal for getting you started with VBScript.  The videos are easy to follow and you can control the pace.  Try their free demo material and then see if you want to buy the full package. See more about VB Script Training CD.


Do you have a good example of this error?  If so, then email me I will publish it with a credit to you:

Do you need extra help?

For interpreting the WSH messages check Diagnose 800 errors.

For general advice try my 7 Troubleshooting techniques

 *


Google

WebComputerperformance.co.uk

GFi Events Manager

Guy Recommends: GFi EventsManager

Here is a solution to monitor, manage and archive thousands of events that are generated by devices across your entire network.  Get your free evaluation copy of GFI EventsManager.

 

Home Copyright © 1999-2008 Computer Performance LTD All rights reserved

Please report a broken link, or an error.