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 | |
---|---|---|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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 | |
---|---|---|
ClientSideExtensionGuid | Gets the GUID that identifies the client-side extension that processes registry-based policy settings.(Overrides GroupPolicyExtension.ClientSideExtensionGuid.) |
|
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.) |
|
Domain | Gets the domain for the Group Policy object (GPO).(Inherited from GroupPolicyExtension.) |
|
DomainController | Gets domain controller on which the Group Policy object (GPO) is being edited.(Inherited from GroupPolicyExtension.) |
|
Gpo | Gets the underlying GroupPolicyObject that represents the GPO being edited.(Inherited from GroupPolicyExtension.) |
|
GpoDisplayName | Gets the display name of the Group Policy object (GPO) that is being edited.(Inherited from GroupPolicyExtension.) |
|
GpoId | Gets the ID (GUID) of the Group Policy object (GPO).(Inherited from GroupPolicyExtension.) |
|
GpoPath | Gets the distinguished name of the Group Policy object (GPO).(Inherited from GroupPolicyExtension.) |
|
IsOpened | Gets a value that indicates whether the GPO has been opened.(Inherited from GroupPolicyExtension.) |
|
IsReadOnly | Gets a value that indicates whether the Group Policy object (GPO) is opened in read-only mode.(Inherited from GroupPolicyExtension.) |
|
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 | |
---|---|---|
Delete(RegistryHive, String, String) | Deletes the registry-based policy setting that is configured for the specified registry value. |
|
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). |
|
Disable(RegistryHive, String, String) | Disables the registry-based policy setting that is configured for the specified registry key. |
|
DisableKey(RegistryHive, String) | Disables all registry-based policy settings that are configured for first-level values under the specified registry key. |
|
DisableList(RegistryHive, String, String[]) | Disables all registry-based policy settings that configure any registry values in a specified list. |
|
Dispose() | Releases all resources used by the current instance of the GroupPolicyExtension class.(Inherited from GroupPolicyExtension.) |
|
Dispose(Boolean) | Releases the unmanaged resources used by the RegistryPolicy class and optionally releases the managed resources.(Overrides GroupPolicyExtension.Dispose(Boolean).) |
|
Equals(Object) | (Inherited from Object.) |
|
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.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
OnOpened(EventArgs) | Called by the OpenGpo method to allow for post-processing by the derived class.(Inherited from GroupPolicyExtension.) |
|
OnOpening(EventArgs) | Called by the OpenGpo method to allow for pre-processing by the derived class.(Inherited from GroupPolicyExtension.) |
|
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.) |
|
OnSaving(SavingEventArgs) | Called by the Save method before the save is performed, to allow for pre-processing by the derived class.(Inherited from GroupPolicyExtension.) |
|
OpenGpo(Boolean) | Opens the Group Policy object (GPO) according to the specified value for read only.(Inherited from GroupPolicyExtension.) |
|
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.) |
|
Read(RegistryHive, String) | Reads all the registry-based policy settings that configure first-level values under the specified registry key. |
|
Read(RegistryHive, String, String) | Reads the registry-based policy setting that configures a specified registry value. |
|
Save(Boolean) | Saves the specified Group Policy object (GPO) section. |
|
ToString() | (Inherited from Object.) |
|
Write(PolicyRegistrySetting, Boolean) | Writes the registry-based policy setting that is specified by the PolicyRegistrySetting object. |
|
WriteBinaryValue(RegistryHive, String, String, Byte[]) | Writes a registry-based policy setting that configures a Binary registry value. |
|
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. |
|
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. |
|
WriteExpandStringValue(RegistryHive, String, String, String) | Writes a Registry preference item that configures an ExpandString registry value. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |
|
WriteMultiStringValue(RegistryHive, String, String, String[]) | Writes a registry-based policy setting that configures a MultiString registry value. |
|
WriteQWordValue(RegistryHive, String, String, Int64) | Writes a registry-based policy setting that configures a QWord registry value by using a 64-bit signed integer. |
|
WriteQWordValue(RegistryHive, String, String, UInt64) | Writes a registry-based policy setting that configures a QWord registry value by using a 64-bit unsigned integer. |
|
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