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
Solved

Powershell - Export email users by OU

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Both MMF (multi-mode fiber) and SMF (single-mode fiber) are types of optical fiber that can aid in communication applications. These thin strands of silica or glass will allow communication to occur between devices. The transmission of light between…
Learn how ViaSat reduced average response times for IT incidents from 10 minutes to 30 seconds.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

828 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