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