Today’s tip is on how to use the Get-OUWithGPOLink funtion in combination with the Get-ADOrganizationalUnit cmdlet. The output of ADOrganizational unit is updated with a new property, FriendlyGPODisplayName. The article is available on PowerShell Magazine:
The full script is also available in the TechNet Script Gallery, Get-OUWithGPO.ps1, at the following link:
http://gallery.technet.microsoft.com/Get-OUWithGPOLinks-List-02bfe340