RegistryPolicy Class

 

Represents the Group Policy Object Editor extension that modifies registry-based policy settings.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.GroupPolicyExtension
    Microsoft.GroupPolicy.RegistryPolicy

Syntax

public class RegistryPolicy : GroupPolicyExtension
public ref class RegistryPolicy : GroupPolicyExtension
type RegistryPolicy = 
    class
        inherit GroupPolicyExtension
    end
Public Class RegistryPolicy
    Inherits GroupPolicyExtension

Constructors

Name Description
System_CAPS_pubmethod RegistryPolicy(DirectoryContext, Guid, Boolean)

Initializes a new instance of the RegistryPolicy class by using the specified DirectoryContext, the specified Group Policy object (GPO) ID (GUID), and a value that specifies whether to open the GPO in read-only mode.

System_CAPS_pubmethod RegistryPolicy(DirectoryContext, String, Boolean)

Initializes a new instance of the RegistryPolicy class by using the specified DirectoryContext, the display name of the Group Policy object (GPO), and a value that specifies whether to open the GPO in read-only mode.

System_CAPS_pubmethod RegistryPolicy(Domain, Guid, Boolean)

Initializes a new instance of the RegistryPolicy class by using the specified Domain, the specified Group Policy object (GPO) ID (GUID), and a value that specifies whether to open the GPO in read-only mode.

System_CAPS_pubmethod RegistryPolicy(Domain, String, Boolean)

Initializes a new instance of the RegistryPolicy class by using the specified Domain, the display name of the Group Policy object (GPO), and a value that specifies whether to open the GPO in read-only mode.

System_CAPS_pubmethod RegistryPolicy(DomainController, Guid, Boolean)

Initializes a new instance of the RegistryPolicy class by using the specified DomainController, the specified Group Policy object (GPO) ID (GUID), and a value that specifies whether to open the GPO in read-only mode.

System_CAPS_pubmethod RegistryPolicy(DomainController, String, Boolean)

Initializes a new instance of the RegistryPolicy class by using the specified DomainController, the display name of the Group Policy object (GPO), and a value that specifies whether to open the GPO in read-only mode.

Properties

Name Description
System_CAPS_protproperty ClientSideExtensionGuid

Gets the GUID that identifies the client-side extension that processes registry-based policy settings.(Overrides GroupPolicyExtension.ClientSideExtensionGuid.)

System_CAPS_protproperty ComputerEditorGuid

Gets the GUID that identifies the editor that is used to edit registry-based policy settings in the computer section (Computer Configuration) of the Group Policy object (GPO).(Overrides GroupPolicyExtension.ComputerEditorGuid.)

System_CAPS_protproperty Domain

Gets the domain for the Group Policy object (GPO).(Inherited from GroupPolicyExtension.)

System_CAPS_protproperty DomainController

Gets domain controller on which the Group Policy object (GPO) is being edited.(Inherited from GroupPolicyExtension.)

System_CAPS_protproperty Gpo

Gets the underlying GroupPolicyObject that represents the GPO being edited.(Inherited from GroupPolicyExtension.)

System_CAPS_pubproperty GpoDisplayName

Gets the display name of the Group Policy object (GPO) that is being edited.(Inherited from GroupPolicyExtension.)

System_CAPS_pubproperty GpoId

Gets the ID (GUID) of the Group Policy object (GPO).(Inherited from GroupPolicyExtension.)

System_CAPS_pubproperty GpoPath

Gets the distinguished name of the Group Policy object (GPO).(Inherited from GroupPolicyExtension.)

System_CAPS_protproperty IsOpened

Gets a value that indicates whether the GPO has been opened.(Inherited from GroupPolicyExtension.)

System_CAPS_pubproperty IsReadOnly

Gets a value that indicates whether the Group Policy object (GPO) is opened in read-only mode.(Inherited from GroupPolicyExtension.)

System_CAPS_protproperty UserEditorGuid

Gets the GUID that identifies the editor that is used to edit registry-based policy settings in the user section (User Configuration) of the Group Policy object (GPO).(Overrides GroupPolicyExtension.UserEditorGuid.)

Methods

Name Description
System_CAPS_pubmethod Delete(RegistryHive, String, String)

Deletes the registry-based policy setting that is configured for the specified registry value.

System_CAPS_pubmethod DeleteAllValuesUnderneathKey(RegistryHive, String)

Deletes any registry-based policy settings that are configured for first-level values under the specified registry key from the Group Policy object (GPO).

System_CAPS_pubmethod Disable(RegistryHive, String, String)

Disables the registry-based policy setting that is configured for the specified registry key.

System_CAPS_pubmethod DisableKey(RegistryHive, String)

Disables all registry-based policy settings that are configured for first-level values under the specified registry key.

System_CAPS_pubmethod DisableList(RegistryHive, String, String[])

Disables all registry-based policy settings that configure any registry values in a specified list.

System_CAPS_pubmethod Dispose()

Releases all resources used by the current instance of the GroupPolicyExtension class.(Inherited from GroupPolicyExtension.)

System_CAPS_protmethod Dispose(Boolean)

Releases the unmanaged resources used by the RegistryPolicy class and optionally releases the managed resources.(Overrides GroupPolicyExtension.Dispose(Boolean).)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

Allows a GroupPolicyExtension object to attempt to free resources and perform other cleanup operations before the object is reclaimed by garbage collection.(Inherited from GroupPolicyExtension.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod OnOpened(EventArgs)

Called by the OpenGpo method to allow for post-processing by the derived class.(Inherited from GroupPolicyExtension.)

System_CAPS_protmethod OnOpening(EventArgs)

Called by the OpenGpo method to allow for pre-processing by the derived class.(Inherited from GroupPolicyExtension.)

System_CAPS_protmethod OnSaved(EventArgs)

Called by the Save method after the save has been performed, to allow for post-processing by the derived class.(Inherited from GroupPolicyExtension.)

System_CAPS_protmethod OnSaving(SavingEventArgs)

Called by the Save method before the save is performed, to allow for pre-processing by the derived class.(Inherited from GroupPolicyExtension.)

System_CAPS_protmethod OpenGpo(Boolean)

Opens the Group Policy object (GPO) according to the specified value for read only.(Inherited from GroupPolicyExtension.)

System_CAPS_protmethod OpenGpo(Boolean, Boolean)

Opens the Group Policy object (GPO) according to the specified value for read only and optionally loads the registry.(Inherited from GroupPolicyExtension.)

System_CAPS_pubmethod Read(RegistryHive, String)

Reads all the registry-based policy settings that configure first-level values under the specified registry key.

System_CAPS_pubmethod Read(RegistryHive, String, String)

Reads the registry-based policy setting that configures a specified registry value.

System_CAPS_pubmethod Save(Boolean)

Saves the specified Group Policy object (GPO) section.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Write(PolicyRegistrySetting, Boolean)

Writes the registry-based policy setting that is specified by the PolicyRegistrySetting object.

System_CAPS_pubmethod WriteBinaryValue(RegistryHive, String, String, Byte[])

Writes a registry-based policy setting that configures a Binary registry value.

System_CAPS_pubmethod WriteDWordValue(RegistryHive, String, String, Int32)

Writes a registry-based policy setting that configures a DWord registry value by using the specified 32-bit signed integer.

System_CAPS_pubmethod WriteDWordValue(RegistryHive, String, String, UInt32)

Writes a registry-based policy setting that configures a DWord registry value by using the specified 32-bit unsigned integer.

System_CAPS_pubmethod WriteExpandStringValue(RegistryHive, String, String, String)

Writes a Registry preference item that configures an ExpandString registry value.

System_CAPS_pubmethod WriteListOfValues(RegistryHive, String, String, String[], RegistryValueKind)

Writes a list of registry-based policy settings that configure String or ExpandString registry values. The registry values are specified by a value prefix and an array of value data. The policy settings are not additive.

System_CAPS_pubmethod WriteListOfValues(RegistryHive, String, String, String[], RegistryValueKind, Boolean)

Writes a list of registry-based policy settings that configure String or ExpandString registry values. The registry values are specified by a value prefix and an array of value data; additive can be optionally specified.

System_CAPS_pubmethod WriteListOfValues(RegistryHive, String, String[], RegistryValueKind)

Writes a list of registry-based policy settings that configure String or ExpandString registry values. The registry values are specified by an array of value data. The policy settings are not additive.

System_CAPS_pubmethod WriteListOfValues(RegistryHive, String, String[], RegistryValueKind, Boolean)

Writes a list of registry-based policy settings that configure String or ExpandString registry values. The registry values are specified by an array of value data; additive can be optionally specified.

System_CAPS_pubmethod WriteListOfValues(RegistryHive, String, String[], String[], RegistryValueKind, Boolean)

Writes a list of registry-based policy settings that configure String or ExpandString registry values. The registry values are specified by an array of value names and a corresponding array of value data; additive can be optionally specified.

System_CAPS_pubmethod WriteMultiStringValue(RegistryHive, String, String, String[])

Writes a registry-based policy setting that configures a MultiString registry value.

System_CAPS_pubmethod WriteQWordValue(RegistryHive, String, String, Int64)

Writes a registry-based policy setting that configures a QWord registry value by using a 64-bit signed integer.

System_CAPS_pubmethod WriteQWordValue(RegistryHive, String, String, UInt64)

Writes a registry-based policy setting that configures a QWord registry value by using a 64-bit unsigned integer.

System_CAPS_pubmethod WriteStringValue(RegistryHive, String, String, String)

Writes a registry-based policy setting that configures a String registry value.

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.GroupPolicy Namespace

Return to top