From 3b414e712c85bdab586d770ab73a85fe0991646c Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Thu, 5 Aug 2021 23:33:35 +0200 Subject: [PATCH] Example update --- Examples/Example-15-AddPermission02.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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