API Reference
Command
Set-ADXGpoOwner
Sets the owner of a GPO (groupPolicyContainer).
Examples
Example 1
Set-ADXGpoOwner -Domain contoso.com -Id '{31B2F340-016D-11D2-945F-00C04FB984F9}' -Identity 'CONTOSO\\Administrators'
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Set-ADXGpoOwner -Domain <string> -Id <Guid> -Identity <string> [<CommonParameters>]#Parameters
- Domain string
- DNS domain name where the GPO resides.
- Id Guid
- GPO GUID (groupPolicyContainer objectGuid).
- Identity string
- New owner (name or SID).
Outputs
ADPlayground.Gpo.GpoOwnerInfo