From 5a2f7893210e7c33c75234215be0a2efe9c09c7a Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Tue, 10 Aug 2021 20:57:38 +0200 Subject: [PATCH] Update example showing exclusions --- Examples/Example-11-ReplaceGPOOwnerWithExclusions.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Examples/Example-11-ReplaceGPOOwnerWithExclusions.ps1 diff --git a/Examples/Example-11-ReplaceGPOOwnerWithExclusions.ps1 b/Examples/Example-11-ReplaceGPOOwnerWithExclusions.ps1 new file mode 100644 index 0000000..d6a8530 --- /dev/null +++ b/Examples/Example-11-ReplaceGPOOwnerWithExclusions.ps1 @@ -0,0 +1,10 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +$GPOs = Get-GPOZaurrOwner -IncludeSysvol -Verbose +$GPOs | Format-Table DisplayName, Status, Owner, OwnerSID, OwnerType, SysvolOwner, SysvolSID, SysvolType + +#Set-GPOZaurrOwner -Type All -Verbose -LimitProcessing 2 -WhatIf -IncludeDomains 'ad.evotec.xyz' + +Set-GPOZaurrOwner -Type All -Verbose -LimitProcessing 2 -WhatIf -IncludeDomains 'ad.evotec.xyz' -ApprovedOwner @( + 'EVOTEC\przemyslaw.klys' +) \ No newline at end of file