Solved

Exchange 2010 scripting

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

Integrate social media with email signatures

Is your company active on social media? Do you also use email signatures? Including social media icons in your email signature is a great way to get fans for free. Let all your email users know you’re on social media quickly and easily, in a single click.

Question has a verified solution.

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

Read this checklist to learn more about the 15 things you should never include in an email signature.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a Distribution Group 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 Recipients >>…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

863 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