Avatar of zito2000
zito2000
Flag for United States of America asked on

Exchange 2013 Powershell Help

Platform: Exchange 2013 Powershell

Hello,

I would like to use Exchange Powershell to give me a list of all people that are in an Exchange Database in a specific format.  
For instance, I would like the command to show me "Here are the employees that are in Database1".  Here are the 2 requests:
1.  It needs to be exported to a CSV file
2.  It needs to show their email address, first name, last name, username, and display name.  

Any help would be greatly appreciated!  Thank you.
PowershellExchangeDatabases

Avatar of undefined
Last Comment
timgreen7077

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
timgreen7077

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
M A

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
timgreen7077

Get-mailbox will display user first and last name unless your are talking about first name column and last name column. The cmdlets i provide will satisfy the author's request, including searching specific DB.
zito2000

ASKER
Both of these were extremely helpful, thank you both!!
I ended up using MAS' command because of the first name/last name separation, but TimGreen's worked like a charm as well to break up by database.
M A

Glad to know Timgreen's command helped.

@Timgreen
Thanks for being on-board.
I didnt mean your command is wrong. We both commented the same time.
Ultimately asker's requirement is met. This is the objective here.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
timgreen7077

Agreed and thank you also.