diff --git a/Examples/Example-15-AddPermission02.ps1 b/Examples/Example-15-AddPermission02.ps1 index a51c8eb..772b7c8 100644 --- a/Examples/Example-15-AddPermission02.ps1 +++ b/Examples/Example-15-AddPermission02.ps1 @@ -7,4 +7,7 @@ Add-GPOZaurrPermission -GPOName 'New Group Policy Object' -Type AuthenticatedUse Add-GPOZaurrPermission -Type AuthenticatedUsers -PermissionType GpoRead -All -WhatIf -Verbose # Add Domain Admins/Enterprise Admins to all that need it -Add-GPOZaurrPermission -Type Administrative -PermissionType GpoEditDeleteModifySecurity -All -WhatIf -Verbose \ No newline at end of file +Add-GPOZaurrPermission -Type Administrative -PermissionType GpoEditDeleteModifySecurity -All -WhatIf -Verbose + +# Add ranom name to all that need it +Add-GPOZaurrPermission -All -Principal SVC_AGPM -PrincipalType Name -PermissionType GpoEditDeleteModifySecurity -Verbose -LimitProcessing 2 -WhatIf \ No newline at end of file