diff --git a/Examples/Example-17-FixInconsistentACL.ps1 b/Examples/Example-17-FixInconsistentACL.ps1 deleted file mode 100644 index d12f6f5..0000000 --- a/Examples/Example-17-FixInconsistentACL.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force - -#Get-GPOZaurrPermissionConsistency -Type All -Forest 'test.evotec.pl' | Format-Table -Get-GPOZaurrPermissionConsistency -Type Inconsistent | ForEach-Object { - $G = Get-GPOZaurrAD -GPOGuid $_.ID.GUID -IncludeDomains $_.DomainName - $P = Get-GPOZaurrPermission -GPOGuid $_.ID.GUID - $F = Get-WinADShare -Path $G.Path - $P | Format-Table - $F | Format-Table -} \ No newline at end of file diff --git a/Examples/Example-17-RepairInconsistentACL.ps1 b/Examples/Example-17-RepairInconsistentACL.ps1 new file mode 100644 index 0000000..01114b9 --- /dev/null +++ b/Examples/Example-17-RepairInconsistentACL.ps1 @@ -0,0 +1,5 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Get-GPOZaurrPermissionConsistency -GPOName 'Default Domain Controllers Policy' -IncludeDomains 'ad.evotec.xyz' + +Repair-GPOZaurrPermissionConsistency -GPOName 'Default Domain Controllers Policy' -IncludeDomains 'ad.evotec.xyz' #-WhatIf -Verbose \ No newline at end of file diff --git a/Examples/Example-18-ListInconsistenciesACLAdvanced.ps1 b/Examples/Example-18-ListInconsistenciesACLAdvanced.ps1 new file mode 100644 index 0000000..a82b837 --- /dev/null +++ b/Examples/Example-18-ListInconsistenciesACLAdvanced.ps1 @@ -0,0 +1,9 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force +#Get-GPOZaurrPermissionConsistency -Type All -Forest 'test.evotec.pl' | Format-Table + +$Output = Get-GPOZaurrPermissionConsistency -GPOName 'Default Domain Controllers Policy' -IncludeDomains 'ad.evotec.xyz' -VerifyInside +$Output | Format-Table DisplayName, DomainName, ACLConsistent, ACLConsistentInside +$Output.ACLConsistentInsideDetails | Format-Table + +$Output = Get-GPOZaurrPermissionConsistency -VerifyInside -Type 'All' +$Output | Format-Table \ No newline at end of file