Freigeben über


RSOP_RegistryPolicySetting class

Represents policy data for registry or administrative template extension. Policy settings in an administrative template file (.adm) involve setting values on registry keys that are abstracted by this class.

Note

Classes that derive from the RSOP_PolicySetting class must redefine both the id and the precedence properties to be keys.

The following syntax is simplified from MOF code and includes all inherited properties.

Syntax

[AMENDMENT]
class RSOP_RegistryPolicySetting : RSOP_PolicySetting
{
  string   id;
  uint32   precedence;
  string   GPOID = "";
  string   SOMID = "";
  datetime creationTime;
  string   registryKey = "";
  string   valueName = "";
  uint32   valueType = 0;
  uint8    value[];
  boolean  deleted = FALSE;
  string   command = "";
};

Members

The RSOP_RegistryPolicySetting class has these types of members:

Properties

The RSOP_RegistryPolicySetting class has these properties.

command

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Command")

Command to run on the registry key or value.

creationTime

Data type: datetime

Access type: Read-only

Time the policy object was created.

This property is inherited from the RSOP_PolicySetting class.

deleted

Data type: boolean

Access type: Read-only

Qualifiers: DisplayName ("Is Deleted")

Indicates whether the registry key or registry value has been deleted.

GPOID

Data type: string

Access type: Read-only

Identifies the GPO that contains the policy object. You can obtain this value from PGROUP_POLICY_OBJECT->lpDSPath. You must remove the prefix LDAP://CN=Machine from lpDSPath.

This property is inherited from the RSOP_PolicySetting class.

id

Data type: string

Access type: Read-only

Qualifiers: key, DisplayName ("ID")

Unique identifier for objects of this class.

This property is inherited from the RSOP_PolicySetting class.

precedence

Data type: uint32

Access type: Read-only

Qualifiers: key, DisplayName ("Precedence")

The order or precedence in which the policy object should be applied.

This property is inherited from the RSOP_PolicySetting class.

registryKey

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Registry Key")

Name of the registry key.

SOMID

Data type: string

Access type: Read-only

The scope of management (SOM) associated with the GPO that contains this policy object. You can obtain this value from PGROUP_POLICY_OBJECT->lpLink. You must remove the prefix LDAP:// from lpLink.

This property is inherited from the RSOP_PolicySetting class.

value

Data type: uint8 array

Access type: Read-only

Qualifiers: DisplayName ("Value")

Value of the registry key, represented by an array of bytes.

valueName

Data type: string

Access type: Read-only

Qualifiers: DisplayName ("Value Name")

Name of the registry value.

valueType

Data type: uint32

Access type: Read-only

Qualifiers: DisplayName ("Type")

Data type of the registry value, such as REG_SZ.

Remarks

The RSOP_RegistryPolicySetting class is derived from RSOP_PolicySetting.

The registry policy settings that relate to Internet Explorer are stored in the RSOP_IERegistryPolicySetting WMI class, rather than in the RSOP_RegistryPolicySetting class. This is because the Internet Explorer Administration Kit (IEAK) UI displays only the RSoP data related to Internet Explorer management.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Namespace
Root\RSOP\Computer, Root\RSOP\User
MOF
Rsop.mof
DLL
GPSvc.dll

See also

Group Policy Overview

Group Policy RSoP WMI Classes

RSOP_PolicySetting