RegistryPreference Constructor (DomainController, Guid, Boolean, Boolean)
Initializes a new instance of the RegistryPreference class by using the specified DomainController, the specified Group Policy object (GPO) ID (GUID), a value that specifies whether to edit Computer Configuration or User Configuration, and a value that specifies whether to open the GPO in read-only mode.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public RegistryPreference(
DomainController domainController,
Guid gpoId,
bool computerConfiguration,
bool readOnly
)
public:
RegistryPreference(
DomainController^ domainController,
Guid gpoId,
bool computerConfiguration,
bool readOnly
)
new :
domainController:DomainController *
gpoId:Guid *
computerConfiguration:bool *
readOnly:bool -> RegistryPreference
Public Sub New (
domainController As DomainController,
gpoId As Guid,
computerConfiguration As Boolean,
readOnly As Boolean
)
Parameters
domainController
Type: System.DirectoryServices.ActiveDirectory.DomainControllerA DomainController object that represents the domain controller to use.
gpoId
Type: System.GuidThe GUID of the GPO to edit.
computerConfiguration
Type: System.Booleantrue to edit Computer Configuration; false to edit User Configuration.
readOnly
Type: System.Booleantrue to open the GPO in read-only mode; otherwise, false.
See Also
RegistryPreference Overload
RegistryPreference Class
Microsoft.GroupPolicy Namespace
Return to top