Language
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the RegistryPreference class by using the specified Domain, 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(
Domain domain,
Guid gpoId,
bool computerConfiguration,
bool readOnly
)
public:
RegistryPreference(
Domain^ domain,
Guid gpoId,
bool computerConfiguration,
bool readOnly
)
new :
domain:Domain *
gpoId:Guid *
computerConfiguration:bool *
readOnly:bool -> RegistryPreference
Public Sub New (
domain As Domain,
gpoId As Guid,
computerConfiguration As Boolean,
readOnly As Boolean
)
Parameters
domain
Type: System.DirectoryServices.ActiveDirectory.DomainA Domain that represents the domain of the GPO.
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