Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

powershell script to export mailbox user attribute to a csv file

Posted on 2011-09-12
5
Medium Priority
?
605 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
[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
  • 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

705 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