Solved

Powershell - Export email users by OU

Posted on 2011-02-16
1
894 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 500 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

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
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…

730 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