mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-07 01:16:03 +00:00
13 lines
629 B
PowerShell
13 lines
629 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
$Named = @(
|
|
'S-1-5-21-853615985-2870445339-3163598659-1105'
|
|
)
|
|
|
|
# Using exclude permission types (it may not be good idea to delete GPORead/GPOApply)
|
|
#Remove-GPOZaurrPermission -Verbose -Type Named -WhatIf -LimitProcessing 2 -NamedObjects $Named -ExcludePermissionType GpoRead,GpoApply
|
|
|
|
# But
|
|
#Remove-GPOZaurrPermission -Type Named -NamedObjects $Named -IncludePermissionType GpoEditDeleteModifySecurity -SkipWellKnown -SkipAdministrative -Verbose -WhatIf
|
|
|
|
Remove-GPOZaurrPermission -Type Named -NamedObjects $Named -SkipWellKnown -SkipAdministrative -Verbose #-WhatIf |