Solved

Exchange 2010 scripting

Posted on 2013-10-29
5
368 Views
Last Modified: 2013-10-29
I've been trying to create a PS script to list all mailboxes on our Exchange 2010 server. I only want listed the username, Item Count in mailbox and size of mailbox. Can someone help I keep getting unknown data?

Also is there a way to get item count of a personal folder?
0
Comment
Question by:donebert
  • 2
  • 2
5 Comments
 
LVL 52

Assisted Solution

by:Manpreet SIngh Khatra
Manpreet SIngh Khatra earned 250 total points
ID: 39609094
Get-Mailbox | Get-MailboxStatistics | FL Name, TotalItemCount, TotalitemSize > C:\MailboxData.csv

If by personal folder you mean PST then no :(

- Rancy
0
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 39609103
Get-MailboxReport.ps1 – PowerShell Script to Generate Mailbox Reports
http://exchangeserverpro.com/powershell-script-create-mailbox-size-report-exchange-server-2010/

How to Calculate Exchange 2010 Mailbox Sizes with PowerShell
http://exchangeserverpro.com/calculate-exchange-2010-mailbox-sizes-powershell/

- Rancy
0
 
LVL 1

Accepted Solution

by:
SsbMs earned 250 total points
ID: 39609140
[PS] C:\Windows\system32>Get-Content "C:\test.txt" | Get-Mailbox | Select-Object Displayname,Database,@{Name='TotalItize'; Expression={[String]::join(";",((Get-MailboxStatistics -identity $_.identity).TotalItemSize))}},@{Name='ItemCout; Expression={[String]::join(";",((Get-MailboxStatistics -identity $_.identity).ItemCount))}} > c:\test.csv
0
 
LVL 1

Expert Comment

by:SsbMs
ID: 39609144
Give all the user Alias in test.txt
0
 
LVL 1

Author Closing Comment

by:donebert
ID: 39609418
Thank you both
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
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…

832 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