From 1208f0af7fc958418c07bcaaf083e435337d7972 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sat, 5 Dec 2020 23:56:05 +0100 Subject: [PATCH] Update examples --- Examples/Example-43-OptimizeGPO.ps1 | 7 ++++++- Examples/Example-44-StatusChange.ps1 | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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