Hello all
I am trying to get a list of users on our Exchange 2013 who have a certain domain in their "PrimarySmtpAddress" field. We have multiple acceptable domains and I want everyone using "example.com" in their main email address.
I have gotten very close and I can filter by identity like
Get-Recipient -identity *example_string* |ft displayname, primarysmtpaddress,
but this just searches the display name, not the smtp address. Can one of you please help me out?
Best wishes
Nima