Files
GPOZaurr/Docs/Set-GPOOwner.md
T
Przemysław Kłys ecef7a7f16 update docs
2026-05-22 15:50:38 +02:00

2.1 KiB

external help file, Module Name, online version, schema
external help file Module Name online version schema
GPOZaurr-help.xml GPOZaurr https://github.com/EvotecIT/GPOZaurr 2.0.0

Set-GPOOwner

SYNOPSIS

Used within Invoke-GPOZaurrPermission only. Set new group policy owner.

SYNTAX

__AllParameterSets

Set-GPOOwner [[-Type] <string>] [[-Principal] <string>] [<CommonParameters>]

DESCRIPTION

Used within Invoke-GPOZaurrPermission only. Set new group policy owner.

EXAMPLES

EXAMPLE 1

PS > Invoke-GPOZaurrPermission -Verbose -SearchBase 'OU=Computers,OU=Production,DC=ad,DC=evotec,DC=xyz' {
    Set-GPOOwner -Type Administrative
    Remove-GPOPermission -Type NotAdministrative, NotWellKnownAdministrative -IncludePermissionType GpoEdit, GpoEditDeleteModifySecurity
    Add-GPOPermission -Type Administrative -IncludePermissionType GpoEditDeleteModifySecurity
    Add-GPOPermission -Type WellKnownAdministrative -IncludePermissionType GpoEditDeleteModifySecurity
} -WhatIf

PARAMETERS

-Principal

Choose Owner Name to set for Group Policy

Type: String
Parameter Sets: __AllParameterSets
Aliases:
Possible values:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: True

-Type

Choose Owner Type. When chosing Administrative Type, owner will be set to Domain Admins for current GPO domain. When Default is set Owner will be set to Principal given in another parameter.

Type: String
Parameter Sets: __AllParameterSets
Aliases:
Possible values: Administrative, Default

Required: False
Position: 0
Default value: Default
Accept pipeline input: False
Accept wildcard characters: True

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

  • None

OUTPUTS

  • None
  • None