retrieve users with specific domain
Hi all, Exchange 2007 SP2 I need to retreive all users that have email address with email domain @xyz.com. Can we use exchange powershell to retrieve and put in the csv or txt file? Thank you.
November 22nd, 2010 11:33am

Hi John JY, You can use this command: Get-Recipient | where {$_.emailaddresses -match "domain.com"} | select name,emailaddresses > c:\xyz.txt Rafael Okamoto _________________________________________________________________________ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
November 22nd, 2010 12:09pm

Hi John, Please refer to the command provided by Rafael, it will help you effectively. Please feel free to let me know if you have any questions. Best regards, Serena
November 24th, 2010 2:50am

Dear John, Definitely you can use the above mentioned cli command to finish off your task, but believe me there is lot more onfo in AD which is nor possible/ verry difficult to retrieve through cli commands. What I preffer to use a third party tool called "AD Manager". This tool will be a great help for you definitely to manage all AD and exchange related tasks. HAve a great day... :)
Free Windows Admin Tool Kit Click here and download it now
November 29th, 2010 2:51am

Thank you for the help. When I run the above command, I got the results like this: Amy Smith {X500:/o=Organization name/ou=First Adminis... ....... What might I miss?
December 1st, 2010 10:26am

Try using ADmodify.net .. You can use it . It is the microsoft tool and you can download it from the net http://admodify.codeplex.com/
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2010 10:41am

Can you give an example of AD info that is impossible or difficult to retrieve via cli commands? The cmdlets in the RSAT Active Directory module seem quite capable.[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
December 1st, 2010 10:42am

Thank you for the direction. I got the results from AD.
Free Windows Admin Tool Kit Click here and download it now
December 1st, 2010 11:09am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics