From 7ac406ca240f5c48471825796123fdeb101d0d93 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Sun, 13 Dec 2020 14:52:23 +0100 Subject: [PATCH] Update examples --- Examples/Example-40-ShowGPO05.ps1 | 7 +++++++ Examples/Example-46-PermissionRepair.ps1 | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 Examples/Example-40-ShowGPO05.ps1 create mode 100644 Examples/Example-46-PermissionRepair.ps1 diff --git a/Examples/Example-40-ShowGPO05.ps1 b/Examples/Example-40-ShowGPO05.ps1 new file mode 100644 index 0000000..2586f04 --- /dev/null +++ b/Examples/Example-40-ShowGPO05.ps1 @@ -0,0 +1,7 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +$GPOS = Get-GPOZaurr -GPOPath 'C:\Support\GitHub\GpoZaurr\Ignore\Empty' -ExcludeGroupPolicies @( + Skip-GroupPolicy -Name 'de14_usr_std' + Skip-GroupPolicy -Name 'de14_usr_std' -DomaiName 'ad.evotec.xyz' +) +$GPOS | Format-Table -AutoSize * \ No newline at end of file diff --git a/Examples/Example-46-PermissionRepair.ps1 b/Examples/Example-46-PermissionRepair.ps1 new file mode 100644 index 0000000..52979f5 --- /dev/null +++ b/Examples/Example-46-PermissionRepair.ps1 @@ -0,0 +1,3 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Repair-GPOZaurrPermission -Verbose -WhatIf -Type Administrative \ No newline at end of file