GPMigrationTable.Add Method (Gpo, Boolean)
Adds entries to the migration table from the specified GPO.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public void Add(
Gpo gpo,
bool copySecurity
)
public:
void Add(
Gpo^ gpo,
bool copySecurity
)
member Add :
gpo:Gpo *
copySecurity:bool -> unit
Public Sub Add (
gpo As Gpo,
copySecurity As Boolean
)
Parameters
gpo
Type: Microsoft.GroupPolicy.GpoA Gpo that represents the GPO from which to add the entries.
copySecurity
Type: System.Booleantrue to copy all the entries from the DACLs and settings; false to not copy security principals from the DACLs.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | gpo is null. |
Remarks
The method also updates any entries that are already present in the migration table for security principals and UNC paths in the GPO.
See Also
Add Overload
GPMigrationTable Class
Microsoft.GroupPolicy Namespace
Return to top