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

x
?
Solved

Powershell script export exchange 2010 mailbox info

Posted on 2013-11-11
2
Medium Priority
?
545 Views
Last Modified: 2013-11-19
Hi

I am after a Powershell script that will get me the following info for a single database

name, totalitemsize, PrimarySMTPAddress, Emailaddresses

The problem I'm having is that 2 pieces of the info I want are properties of the get-mailbox cmdlet and the other 2 are of the get-mailboxstatistics cmdlet, how can I get all the info in one go.

I run the below to give me the info from get-mailboxstatistics but cant get the additional info I want.

get-mailboxdatabase "Mailbox Database 01" | Get-mailbox | get-mailboxstatistics | ft displayname,totalitemsize 

Open in new window

0
Comment
Question by:ncomper
[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
2 Comments
 
LVL 43

Accepted Solution

by:
Vasil Michev (MVP) earned 2000 total points
ID: 39639822
Like this for example:

Get-Mailbox | ft name,displayName,@{Name='totalitemsize';Expression={(Get-MailboxStatistics $_.userprincipalname).TotalItemSize}},primarySmtpaddress,emailaddresses

Open in new window

0
 
LVL 5

Author Closing Comment

by:ncomper
ID: 39659707
Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
In this video we show how to create an Address List in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Organization >> Ad…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
Suggested Courses

715 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