Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

powershell script to export mailbox user attribute to a csv file

Posted on 2011-09-12
5
Medium Priority
?
606 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 1500 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
There are times when we need to generate a report on the inbox rules, where users have set up forwarding externally in their mailbox. In this article, I will be sharing a script I wrote to generate the report in CSV format.
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ā€¦
Screencast - Getting to Know the Pipeline

783 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