?
Solved

Powershell - Export email users by OU

Posted on 2011-02-16
1
Medium Priority
?
896 Views
Last Modified: 2012-05-11
Anyone have a script to export email accounts sorted by the OU they user is located in?
0
Comment
Question by:someITGuy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 27

Accepted Solution

by:
KenMcF earned 2000 total points
ID: 34912639
You can use the quest ad cmdlets and sort by parent OU

Get-Qaduser -sizelimit 0 -ldapfilter "(mail=*)" | Select Name, email, ParentContainer, ParentContainerDN | Sort ParentContainer | Export-csv c:\users.csv

http://www.quest.com/powershell/activeroles-server.aspx
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

OnPage enhanced its integration with ConnectWise Manage to offer incident responders more control over the ticket and Incident Resolution Lifecycle.
Introducing Priority Question, our latest feature.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question