Solved

Powershell script export exchange 2010 mailbox info

Posted on 2013-11-11
2
539 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 39

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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 …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…
how to add IIS SMTP to handle application/Scanner relays into office 365.

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now