Solved

Exchange 2010 scripting

Posted on 2013-10-29
5
341 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
In this video we show how to create a mailbox database 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 >> Data…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

707 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now