powershell script to export mailbox user attribute to a csv file

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.

Who is Participating?

Improve company productivity with a Business Account.Sign Up

Joseph DalyConnect With a Mentor Commented:
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.
Joseph DalyCommented:
What do you mean by alias?
cawasakiAuthor Commented:

alias i s an exchange attribute.

and i need powershell command without quest command.

cawasakiAuthor Commented:
any help plz?
cawasakiAuthor Commented:
ok i accept your solution, the alias attribute is simple to get, only need to call alias :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.