Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

empty OU's

$
0
0

I've searched high and low for this script and can't locate any that helps me to get a report on empty OUs in my environment.

I tried to construct a command but no cigar. the below is what I was thinking but clearly that doesn't work.

get-ADOrganizationalUnit -filter * | where {$._Name -eq $null}

 

Please help if you can!

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images