Solved

Storage Groups

Posted on 2013-01-02
2
389 Views
Last Modified: 2013-04-29
Hello,

I am trying to export to CVS all mailboxes to include

Last time someone logged into mailbox
What storage group they are part off
Total mailbox size per user

I ran the following script in exchange shell running on Exchange 2007 Sp1

Get-MailboxStatistics -Database "Mailbox Database" | Select DisplayName, TotalItemSize, StorageGroupName,StorageLimitStatus,LastLogonTime | Export-CSV c:\mailboxinfo.csv

Results: Only extract one storage group * any particular reason it missed other storage groups.
What is my script missing?
0
Comment
Question by:enclara
2 Comments
 
LVL 16

Accepted Solution

by:
Shaik M. Sajid earned 500 total points
Comment Utility
Exchange server name: EXC07

Storage group name: SG01

Database name: SG01MB1

Get-MailboxStatistics -Database "Exc07\SG01\SG01MB1" select DisplayName, ItemCount, TotalItemSize export-csv -path e:\Reports\SG1.csv
 

http://smtp25.blogspot.com/2009/01/how-to-export-user-mailboxes-and-its_12.html

try this blog

all the best
0
 
LVL 49

Expert Comment

by:Akhater
Comment Utility
Try

Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, TotalItemSize, StorageGroupName,StorageLimitStatus,LastLogonTime | Export-CSV c:\mailboxinfo.csv

Open in new window

0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
In this video we show how to create an email address policy 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 Mail Flow…
To show how to generate a certificate request 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 >> Certificates…

772 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

13 Experts available now in Live!

Get 1:1 Help Now