From 51620715fa3bfbf472ed47fdd37e92f8ed526011 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sun, 22 Nov 2020 18:48:14 +0100 Subject: [PATCH] Update example 1 --- Examples/Example-15-AddPermission02.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Examples/Example-15-AddPermission02.ps1 b/Examples/Example-15-AddPermission02.ps1 index 0b46cd0..a51c8eb 100644 --- a/Examples/Example-15-AddPermission02.ps1 +++ b/Examples/Example-15-AddPermission02.ps1 @@ -1,3 +1,10 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -Add-GPOZaurrPermission -GPOName 'New Group Policy Object' -Type AuthenticatedUsers -PermissionType GpoRead -Verbose -WhatIf \ No newline at end of file +# Change per one GPO +Add-GPOZaurrPermission -GPOName 'New Group Policy Object' -Type AuthenticatedUsers -PermissionType GpoRead -Verbose -WhatIf + +# Add to ALL GPOs that need it +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