The Win32_PageFileSetting WMI class represents the settings of a page file. Information contained within objects instantiated from this class specify the page file parameters used when the file is created at system startup. The properties in this class can be modified and deferred until startup. These settings are different from the run-time state of a page file expressed through the associated class Win32_PageFileUsage.
To create an instance of this class, enable the SeCreatePagefilePrivilege privilege. For more information, see Privilege Constants and Executing Privileged Operations.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties and methods are in alphabetic order, not MOF order.
Syntax
[Dynamic, Provider("CIMWin32"), Privileges("SeCreatePagefilePrivilege"), UUID("{514A9270-C856-11D2-B364-00105A1f77A1}"), SupportsCreate, CreateBy("PutInstance"), SupportsDelete, DeleteBy("DeleteInstance"), SupportsUpdate, AMENDMENT]
class Win32_PageFileSetting : CIM_Setting
{
string Caption;
string Description;
string SettingID;
uint32 InitialSize;
uint32 MaximumSize;
string Name;
};
Members
The Win32_PageFileSetting class has these types of members:
Properties
The Win32_PageFileSetting class has these properties.
Caption
Data type: string
Access type: Read-only
Qualifiers: MaxLen (64)
Short textual description of the current object.
This property is inherited from CIM_Setting.
Description
Data type: string
Access type: Read-only
Textual description of the current object.
This property is inherited from CIM_Setting.
InitialSize
Data type: uint32
Access type: Read/write
Qualifiers: MappingStrings ("Win32Registry|System\\CurrentControlSet\\Control\\Session Manager\\Memory Management|PagingFiles"), Units ("megabytes")
Initial size of the page file.
Example: 139
MaximumSize
Data type: uint32
Access type: Read/write
Qualifiers: MappingStrings ("Win32Registry|System\\CurrentControlSet\\Control\\Session Manager\\Memory Management|PagingFiles"), Units ("megabytes")
Maximum size of the page file.
Example: 178
Name
Data type: string
Access type: Read/write
Qualifiers: Key, MappingStrings ("WMI")
Path and file name of the page file.
Example: "C:\PAGEFILE.SYS"
SettingID
Data type: string
Access type: Read-only
Qualifiers: MaxLen (256)
Identifier by which the current object is known.
This property is inherited from CIM_Setting.
Remarks
The Win32_PageFileSetting class is derived from CIM_Setting.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista |
| Minimum supported server | Windows Server 2008 |
| Namespace | Root\CIMV2 |
| MOF | CIMWin32.mof |
| DLL | CIMWin32.dll |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
