Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

Exchange 2010 scripting

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
donebert
Asked:
donebert
  • 2
  • 2
2 Solutions
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Get-Mailbox | Get-MailboxStatistics | FL Name, TotalItemCount, TotalitemSize > C:\MailboxData.csv

If by personal folder you mean PST then no :(

- Rancy
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
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
 
SsbMsCommented:
[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
 
SsbMsCommented:
Give all the user Alias in test.txt
0
 
donebertAuthor Commented:
Thank you both
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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