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

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.
siber1Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
AkhaterConnect With a Mentor Commented:
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
 
siber1Author Commented:
thx. how can i also capture these values on the size [i need the hidden folder sizes as well]
folderpath,foldersize, ItemsinFolder -autosize
0
 
siber1Author Commented:
hi Akhater, any update on this?
0
 
siber1Author Commented:
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
 
siber1Author Commented:
thank you
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.