Determine What Active Directory Organization Units a Group Policy is Linked to with PowerShell

Have you ever noticed that there’s not many GPO related PowerShell cmdlets? I started out wanting to know what group policies existed that weren’t linked to OU’s and added a few other properties to return additional useful information for the ones that were: #Requires -Version 3.0 #Requires -Modules GroupPolicy function Get-GPOLink { <# .SYNOPSIS Returns the Active Directory (AD) Organization Units (OU's) that a Group Policy Object (GPO) is linked to....

November 14, 2013 · 2 min · 299 words · Mike F. Robbins