Get a Contact list from Exchnage Server 2007

padas6
padas6 used Ask the Experts™
on
I want get the all list of contact from the Mailbox server, as contact is more than 1000 , please let me know how can I get all the list in single command.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The following link should help you.
http://www.msexchange.org/articles_tutorials/exchange-server-2007/management-administration/address-lists-exchange-2007-part1.html

I did it with
[PS] C:\Windows\system32>$contacts= (Get-Addresslist "All Contacts").DistinguishedName
[PS] C:\Windows\system32>get-recipient -filter {AddresslistMembership -eq $contacts}
Apologies missed a very important part.. 2nd command should read
get-recipient -filter {AddresslistMembership -eq $contacts} -ResultSize unlimited

Author

Commented:
Thanks for the link, actually I want email external email address as well. I am facing some challenges for duplication contact entry so email address might be help me to get those user details.
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Ok if you want the external email too just change command as follows:
get-recipient -filter {AddresslistMembership -eq $contacts} -resultSize unlimited|fl Name, ExternalEmailAddress|export-csv contactinfo.csv

Author

Commented:
The problem is resolved by Exporting the contact.

Author

Commented:
Good

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial