Hello, I am using Exchange 2010 and looking for a command that will pull the Name, Primary Email Address as well as alias's from a particular domain, and if there is a way to find out what group they are a part of is optional to a csv file. Here is what I have so far, but when I export to csv, I get strange info. Although this may not be everything I need, I think I have a good start.
get-recipient |where {$_.emailaddresses -like "*domain.com"} |select name,emailaddresses | Export-CSV c:\Output.csv -NoTypeInformation
Thank you!
Paul
Duramaxster