Solved

Powershell - Export email users by OU

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
Scenario: Your operations manager has discovered an anomaly in your security system. The business will start to suffer within 15 minutes if it is a major IT incident. What should she do? We have 6 recommendations for managing major incidents (https:…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now