Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 76
  • Last Modified:

get an email list for an OU exported to excel

need to provide a report of email address for an OU
Jorge Ocampo
Jorge Ocampo
  • 2
1 Solution
Rajitha ChimmaniCommented:
Please elaborate your question. Are you looking for all objects emailaddresses within an OU? What is the Exchange version?
Jorge OcampoAuthor Commented:
yes correct exchange 2010
Rajitha ChimmaniCommented:
Still, your request is not complete. However, this is the basic command you may use

Get-Mailbox -Resultsize unlimited -OrganizationalUnit <fqdnofOU> | Select primarysmtpaddress >> emails.csv

Open in new window


Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now