PRB: "Value Out of Range Error" Error Message When You Change Page File Settings (303800)
The information in this article 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
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("winmgmts:").InstancesOf("Win32_PageFileSetting")
For Each objWin32PageFileSetting In objWbemObjectSet
objWin32PageFileSetting.InitialSize = objWin32PageFileSetting.InitialSize + 2
objWin32PageFileSetting.Put_ '// may cause error -2147217365 "Value out of range"
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.
STATUSThis behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/4/2003 |
---|
Keywords: | kberrmsg kbprb KB303800 |
---|
|