Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Win32_Registry class

The Win32_RegistryWMI class represents the system registry on a computer system running Windows.

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

[Provider("CIMWin32")]class Win32_Registry : CIM_LogicalElement
{
  string   Caption;
  uint32   CurrentSize;
  string   Description;
  datetime InstallDate;
  uint32   MaximumSize;
  string   Name;
  uint32   ProposedSize;
  string   Status;
};

Members

The Win32_Registry class has these types of members:

Properties

The Win32_Registry class has these properties.

Caption
Data type: string
Access type: Read-only

Short description of the object.

CurrentSize
Data type: uint32
Access type: Read-only
Qualifiers: Units (Megabytes)

Current physical size of the Windows registry.

Example: 10

Description
Data type: string
Access type: Read-only

Description of the object.

InstallDate
Data type: datetime
Access type: Read-only

Object was installed. This property does not need a value to indicate that the object is installed.

MaximumSize
Data type: uint32
Access type: Read-only
Qualifiers: Units (Megabytes)

Maximum size of the Windows registry. If the system is successful in using the ProposedSize property, MaximumSize should contain the same value.

Name
Data type: string
Access type: Read-only
Qualifiers: Key

Name of the Windows registry. The maximum length is 256 characters.

ProposedSize
Data type: uint32
Access type: Read/write
Qualifiers: Units (Megabytes)

Proposed size of the Windows registry. It is the only registry setting that can be modified, and its proposal is attempted the next time the system boots.

Status
Data type: string
Access type: Read-only

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states.

The values are:

"OK"
"Error"
"Degraded"
"Unknown"
"Pred Fail"
"Starting"
"Stopping"
"Service"

Remarks

The Win32_Registry class is derived from CIM_LogicalElement.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2003

Namespace

\root\CIMV2

MOF

CIMWin32.mof

DLL

CIMWin32.dll

See also

Operating System Classes

 

 

Show:
© 2014 Microsoft