mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
17 lines
604 B
PowerShell
17 lines
604 B
PowerShell
Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
|
|
|
|
$OUs = Get-GPOZaurrOrganizationalUnit
|
|
$Ous | Format-Table
|
|
|
|
Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @(
|
|
'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl'
|
|
) | Format-Table
|
|
|
|
Get-GPOZaurrOrganizationalUnit -Verbose -ExcludeOrganizationalUnit @(
|
|
'*,OU=Production,DC=ad,DC=evotec,DC=pl'
|
|
) | Format-Table
|
|
|
|
Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html -Exclusions @(
|
|
'*OU=Production,DC=ad,DC=evotec,DC=pl'
|
|
'*OU=Accounts,OU=Administration,DC=ad,DC=evotec,DC=xyz'
|
|
) |