Solved

Powershell script export exchange 2010 mailbox info

Posted on 2013-11-11
2
540 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
2 Comments
 
LVL 40

Accepted Solution

by:
Vasil Michev (MVP) earned 500 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
A procedure for exporting installed hotfix details of remote computers using powershell
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
In this video we show how to create a Contact 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 Recipients >> Contact ta…

770 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