From 53aa69029fd7225481ece93b891b7e784ad4b2d0 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sun, 11 Apr 2021 21:11:19 +0200 Subject: [PATCH] Update examples --- Examples/Example-40-ShowGPO01.ps1 | 14 +++++++++++++- Examples/Example-40-ShowGPO05.ps1 | 4 ++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Examples/Example-40-ShowGPO01.ps1 b/Examples/Example-40-ShowGPO01.ps1 index 70d8b79..710b168 100644 --- a/Examples/Example-40-ShowGPO01.ps1 +++ b/Examples/Example-40-ShowGPO01.ps1 @@ -1,4 +1,16 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force #$Output = Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -PassThru -Type GPOConsistency, GPOList, GPODuplicates, GPOBroken, GPOOwners, NetLogonOwners, GPOPermissionsRead, GPOPermissionsAdministrative,GPOPermissionsUnknown -Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOBlockedInheritance -Online \ No newline at end of file + +# Shows how to use exclusions (supported only in GPOBlockedInheritance) +Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOBlockedInheritance -Online -Exclusions @( + 'OU=Test,OU=ITR02,DC=ad,DC=evotec,DC=xyz' +) + +<# +# Shows how to use exclusions for GPOList (different way) +Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOList -Online -Exclusions { + Skip-GroupPolicy -Name 'de14_usr_std' + Skip-GroupPolicy -Name 'ALL | Enable RDP' -DomaiName 'ad.evotec.xyz' +} +#> \ No newline at end of file diff --git a/Examples/Example-40-ShowGPO05.ps1 b/Examples/Example-40-ShowGPO05.ps1 index 2586f04..10fe670 100644 --- a/Examples/Example-40-ShowGPO05.ps1 +++ b/Examples/Example-40-ShowGPO05.ps1 @@ -1,7 +1,7 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -$GPOS = Get-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\Empty' -ExcludeGroupPolicies @( +$GPOS = Get-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\Empty' -ExcludeGroupPolicies { Skip-GroupPolicy -Name 'de14_usr_std' Skip-GroupPolicy -Name 'de14_usr_std' -DomaiName 'ad.evotec.xyz' -) +} $GPOS | Format-Table -AutoSize * \ No newline at end of file