Microsoft KB Archive/303800

= PRB: &quot;Value Out of Range Error&quot; Error Message When You Change Page File Settings =

Article ID: 303800

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Windows Management Instrumentation 1.0
 * Microsoft Windows Management Instrumentation 1.1
 * Microsoft Windows Management Instrumentation 1.2
 * Microsoft Windows Management Instrumentation 1.5
 * Microsoft Windows XP Professional
 * Microsoft Windows 2000 Standard Edition

-



This article was previously published under Q303800



SYMPTOMS
When you use Windows Management Instrumentation to change the InitialSize property or the MaximumSize property for the page file, you may receive the following error message:

Value out of range

The error number is -2147217365 (0x8004102B in hexadecimal). This corresponds to the symbolic error WBEM_E_VALUE_OUT_OF_RANGE.



CAUSE
Windows Management Instrumentation verifies that there is enough free disk space on the drive that hosts the page file to accommodate a file of the requested maximum size, regardless of the space that is occupied by the existing page file. For example, you receive the error message if you run the following sample code in Visual Basic or Visual Basic Script to try to increase the initial size of each page file on the local system by 2 megabytes (MB): Dim objWin32PageFileSetting Dim objWbemObjectSet

Set objWbemObjectSet = GetObject(&quot;winmgmts:&quot;).InstancesOf(&quot;Win32_PageFileSetting&quot;)

For Each objWin32PageFileSetting In objWbemObjectSet objWin32PageFileSetting.InitialSize = objWin32PageFileSetting.InitialSize + 2 objWin32PageFileSetting.Put_ '// may cause error -2147217365 &quot;Value out of range&quot;

Next You also receive the error message if either of the following conditions is true:
 * The specified minimum size is greater than the specified maximum size.
 * The specified minimum size is less than 2 MB.



WORKAROUND
Verify that there is enough free disk space on the drive that hosts the page file to accommodate a page file of the specified maximum size. You must do this even when you do not change the maximum size.



STATUS
This behavior is by design.

Keywords: kberrmsg kbprb KB303800

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.