• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 554
  • Last Modified:

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.
0
siber1
Asked:
siber1
  • 4
1 Solution
 
AkhaterCommented:
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now