diff --git a/Examples/Example-43-OptimizeGPO.ps1 b/Examples/Example-43-OptimizeGPO.ps1 index 9e71479..2703442 100644 --- a/Examples/Example-43-OptimizeGPO.ps1 +++ b/Examples/Example-43-OptimizeGPO.ps1 @@ -1,3 +1,8 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -Optimize-GPOZaurr -All -WhatIf -Verbose -LimitProcessing 2 \ No newline at end of file +# Optimize All +Optimize-GPOZaurr -All -Verbose -IncludeDomains 'ad.evotec.pl' -LimitProcessing 1 { + Skip-GroupPolicy -Name 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -DomaiName 'ad.evotec.pl' +} +# Optimize just one +#Optimize-GPOZaurr -GPOName 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -WhatIf -Verbose \ No newline at end of file diff --git a/Examples/Example-44-StatusChange.ps1 b/Examples/Example-44-StatusChange.ps1 index 74cf465..182c0e9 100644 --- a/Examples/Example-44-StatusChange.ps1 +++ b/Examples/Example-44-StatusChange.ps1 @@ -1,3 +1,3 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -Set-GPOZaurrStatus -Name 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -Status AllSettingsEnabled -Verbose \ No newline at end of file +Set-GPOZaurrStatus -Name 'TEST | Empty GPO - AD.EVOTEC.PL CrossDomain GPO' -Status AllSettingsEnabled -Verbose -WhatIf \ No newline at end of file