Solved

Powershell script export exchange 2010 mailbox info

Posted on 2013-11-11
2
538 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 38

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Synchronize a new Active Directory domain with an existing Office 365 tenant
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

744 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

11 Experts available now in Live!

Get 1:1 Help Now