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