how to use Exchange Management Shell to find users based on email domain
I'd like to find all users who have a specific email domain in their email address. For example, I want all users that have the @test.com domain.
What's the command for this?
Please don't send me a link that has generic Microsoft information, I just want to know what the actual Exchanage Management Shell command is.
July 12th, 2012 12:53pm
hi,
use this command:
get-mailbox | where {$_.emailaddresses -match "@test.com"}
replace "@test.com" with the maildomain you are looking for.
regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
July 12th, 2012 1:05pm