Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-02-06
5
Medium Priority
?
546 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 2000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
Are you an Exchange administrator employed with an organization? And, have you encountered a corrupt Exchange database due to which you are not able to open its EDB file. This article will explain all the steps to repair corrupt Exchange database.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

688 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