Solved

powershell script to export mailbox user attribute to a csv file

Posted on 2011-09-12
5
598 Views
Last Modified: 2012-05-12
Hello Experts,

I need a script to export export mailbox user attribute to a csv file.

i have Exchange2007 SP3.

I need to export from 2 specific OU this attributesfor all users :

Firstname, lastname, Alias.

thanks for your help.

0
Comment
Question by:cawasaki
  • 3
  • 2
5 Comments
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 36525089
What do you mean by alias?
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 500 total points
ID: 36525100
You could do something like

get-qaduser -searchroot {DN of OU} | select-object firstname,lastname,email

If by alias you mean the email address. If not then tell me what you mean by alias and i can modify the query.
0
 

Author Comment

by:cawasaki
ID: 36525232
hi,

alias i s an exchange attribute.

and i need powershell command without quest command.

thanks
0
 

Author Comment

by:cawasaki
ID: 36527673
any help plz?
0
 

Author Closing Comment

by:cawasaki
ID: 36528467
ok i accept your solution, the alias attribute is simple to get, only need to call alias :)
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 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