Solved

looking for a posh or quest ad cmdlets script to generate report of mailbox sizes

Posted on 2013-02-06
5
534 Views
Last Modified: 2013-02-07
can someone provide a script that will capture the mailbox size report of users listed on an input CSV. we are running exchange 2010 sp2

thx in advance.

S.
0
Comment
Question by:siber1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 49

Accepted Solution

by:
Akhater earned 500 total points
ID: 38862617
assuming your CSV is as per below

username
user1
user2
user3

Open in new window



$mbxs = import-csv c:\list.csv

$mbxs | foreach {Get-MailboxStatistics  $_.username | select DisplayName,@{label="Total Size (MB)";expression={$_.TotalItemSize.Value.ToMB()} }} | export-csv c:\size.csv

Open in new window

0
 

Author Comment

by:siber1
ID: 38862672
thx. how can i also capture these values on the size [i need the hidden folder sizes as well]
folderpath,foldersize, ItemsinFolder -autosize
0
 

Author Comment

by:siber1
ID: 38864625
hi Akhater, any update on this?
0
 

Author Comment

by:siber1
ID: 38864685
i think i almost have it, but still not working? can anyone provide assistance?

$mbxs = import-csv c:\list.csv

$mbxs | foreach {Get-MailboxFolderStatistics $_.username | Select Identity,FolderPath,FolderSize,ItemsInFolder} | Sort-Object ItemsInFolder | fl | out-File C:\Mboxes.txt
0
 

Author Closing Comment

by:siber1
ID: 38865113
thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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