Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Powershell script to list specific exchange mailbox size per folder inside mailbox?

Posted on 2014-07-15
7
Medium Priority
?
944 Views
Last Modified: 2014-10-13
Hi,

Can anyone please help me to modify the Exchange Server 2007 powershell script below to view the current total number of mailbox item and its size in MB ?

Get-MailboxStatistics "HelpDesk" | Sort-Object TotalItemSize -Descending | Select-Object DisplayName,@{Label="Size(GB)"; Expression={$_.TotalItemSize.Value.ToGb()}}, Database, LastLogoffTime, DeletedItemCount, DisconnectDate | ft -auto

I need to know the size of the Inbox folder and the Sent Items as well as other directories.

Thanks.
0
Comment
  • 4
6 Comments
 
LVL 8

Author Comment

by:Senior IT System Engineer
ID: 40196617
Thanks for the quick reply, but this is for the Exchange Server 2007 not 2010.
0
 
LVL 2

Accepted Solution

by:
Swati Dixit earned 1000 total points
ID: 40196654
Can you please try with below script:

Get-Mailbox | Select-Object alias | foreach-object {Get-MailboxFolderStatistics -Identity $_.alias | select-object Identity, ItemsInFolder, FolderSize} | Export-csv c:\Statistics.csv -NoTypeInformation

you can change the name of csv file (it will have the statistics of particular mailbox exported).
0
 
LVL 8

Author Comment

by:Senior IT System Engineer
ID: 40196807
yes it is almost what I expect, so how to calculate the size to be displayed in Gigabyte ?
and also the time stamp of the email in the folder (eg. the oldest email in the folder or the latest)
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
LVL 10

Assisted Solution

by:Senthil Kumar
Senthil Kumar earned 1000 total points
ID: 40197475
0
 
LVL 8

Author Comment

by:Senior IT System Engineer
ID: 40235803
so what's the final script will be ?
0
 
LVL 8

Author Closing Comment

by:Senior IT System Engineer
ID: 40378792
Thanks !
0

Featured Post

Who's Defending Your Organization from Threats?

Protecting against advanced threats requires an IT dream team – a well-oiled machine of people and solutions working together to defend your organization. Download our resource kit today to learn more about the tools you need to build you IT Dream Team!

Question has a verified solution.

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

In this post, I will showcase the steps for how to create groups in Office 365. Office 365 groups allow for ease of flexibility and collaboration between staff members.
There can be many situations demanding the conversion of Outlook OST files to PST format and as such, there is no shortage of automated tools to perform this conversion. However, what makes Stellar OST to PST converter stand above the rest? Let us e…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

572 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