From 9538facc13374ef38960ed2344fca4b8b177f9bb Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Tue, 10 Aug 2021 20:57:02 +0200 Subject: [PATCH] Update example showing exclusions --- Examples/Example-13-ListingOwners02.ps1 | 4 +++- Examples/Example-13-ListingOwners03.ps1 | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Examples/Example-13-ListingOwners03.ps1 diff --git a/Examples/Example-13-ListingOwners02.ps1 b/Examples/Example-13-ListingOwners02.ps1 index 6a941f5..b96b8ac 100644 --- a/Examples/Example-13-ListingOwners02.ps1 +++ b/Examples/Example-13-ListingOwners02.ps1 @@ -2,7 +2,9 @@ $T = Get-GPOZaurrOwner -Verbose -IncludeSysvol $T | Format-Table * -#$T | Out-HtmlView -ScrollX + +$T = Get-GPOZaurrOwner -Verbose -IncludeSysvol -ApprovedOwner @('EVOTEC\Domain Admins') +$T | Format-Table * $T = Get-GPOZaurrOwner -Verbose -IncludeSysvol -GPOName 'Default Domain Policy' $T | Format-Table * diff --git a/Examples/Example-13-ListingOwners03.ps1 b/Examples/Example-13-ListingOwners03.ps1 new file mode 100644 index 0000000..485785b --- /dev/null +++ b/Examples/Example-13-ListingOwners03.ps1 @@ -0,0 +1,6 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurrGPOOwners.html -Type GPOOwners -Online -Exclusions @( + 'EVOTEC\Domain Admins' + 'EVOTEC\przemyslaw.klys' +) \ No newline at end of file