I have run a report against a Container (PowerBroker/Likewise) that contains other containers that are clearly based on AD samAccountNames, but since there are 24,000 of them, I want to pipe these names into a script that will find them in AD and return a select set of properties (full name, DN, whatever)
My working one-liner:
Get-ADObject -filter * -SearchBase ‘CN=Users,CN=$LikewiseIdentityCell,OU=SERVERS,DC=domain,DC=company,DC=com’ `
-Properties * | select name | ??
Is it possible to pipe the results and “correlate” against AD user objects in this same domain?