Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

How to verify GPO is linked to all OU's

$
0
0

PowerShell Gurus,

I need to verify that the Default Domain Policy GPO is linked toall the OU's in my domain.

How can I generate a list of OU's where the Default Domain Policy is NOTlinked?

I'm close, but I'm missing something...

Get-ADOrganizationalUnit -Filter * | Get-GPInheritance  ???

I'm guessing I somehow need to filter on the $_.GPOLinks, or $_.InheritedGpoLinks properties?

Thanks in advance!

"T"


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>