Files
GPOZaurr/Examples/Example-14-ListingGPOsPerOU3.ps1
Przemyslaw Klys d4f8cdc8e8 Update examples
2020-12-28 10:31:25 +01:00

7 lines
638 B
PowerShell

Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force
# gpLink is required property. While LinkedGroupPolicyObjects does work it doesn't contain information about enabled/enforced GPO
Get-ADOrganizationalUnit -Filter * -Properties distinguishedName, LinkedGroupPolicyObjects, gpLink | Get-GPOZaurrLink | Format-Table
Get-ADOrganizationalUnit -Filter * -Properties canonicalname, distinguishedName, LinkedGroupPolicyObjects, gpLink | Get-GPOZaurrLink | Format-Table
Get-ADObject -Filter * -Properties distinguishedName, gplink -Server 'ad.evotec.pl' | Get-GPOZaurrLink | Format-Table -AutoSize
Get-GPOZaurrLink | Format-Table -AutoSize