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