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

Retrieve members from AD Container

$
0
0

Hello Everyone, I'm trying to get the names of computers that are members of a container...

get-adobject -filter * -searchbase "CN=x,OU=x,OU=x,DC=x" -properties *|where-object {$_.member -like '*OU=equipment*'}|select member|out-string

I can get this far but would still need to parse the string for the computer names. Is there an easier way to do this??

Thanks


Viewing all articles
Browse latest Browse all 8411

Latest Images

Trending Articles



Latest Images