From b7ed5e0c5a2453b5842f9cb065cdf71fd5a20646 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Thu, 5 Aug 2021 22:13:56 +0200 Subject: [PATCH] Added examples for new functions --- Examples/Example-50-RemoveLinkFromEmptyOU.ps1 | 3 +++ Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 Examples/Example-50-RemoveLinkFromEmptyOU.ps1 create mode 100644 Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 diff --git a/Examples/Example-50-RemoveLinkFromEmptyOU.ps1 b/Examples/Example-50-RemoveLinkFromEmptyOU.ps1 new file mode 100644 index 0000000..e081dff --- /dev/null +++ b/Examples/Example-50-RemoveLinkFromEmptyOU.ps1 @@ -0,0 +1,3 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Remove-GPOZaurrLinkEmptyOU -WhatIf -Verbose \ No newline at end of file diff --git a/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 new file mode 100644 index 0000000..aaa3f9a --- /dev/null +++ b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 @@ -0,0 +1,5 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink | Format-Table + +Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html