Поделиться через


RSOP_IERegistryPolicySetting class

The RSOP_IERegistryPolicySetting WMI class represents the abstraction for registry extension policy data for Microsoft Internet Explorer. Policy settings in an .adm file involve setting values on registry keys that are abstracted by this class.

Note

Classes that derive from the RSOP_PolicySetting class must redefine the precedence property to be a key.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

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

Members

The RSOP_IERegistryPolicySetting class has these types of members:

Properties

The RSOP_IERegistryPolicySetting 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.

currentUser

Data type: boolean

Access type: Read-only

Qualifiers: key, DisplayName ("Current User")

If TRUE, the class instance is loaded in the user's registry hive which is loaded under HKEY_CURRENT_USERwhen the user logs on. If FALSE, the class instance is loaded under HKEY_LOCAL_MACHINE.

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.

name

Data type: string

Access type: Read-only

User-friendly name of the policy object.

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 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

RSOP_PolicySetting