how to check the total size for the deleted items organization wide in exchange 2010
how to check the total size for the deleted items organization wide in exchange 2010 and implement a policy to delete mails older that 30 days in Deleted item folder for all the users (similar to what it was in exchange 2003, mailbox policy)
January 21st, 2011 5:40pm
Try this script from EMS for getting deleted items size for users,
Get-Mailbox | %{
$_ | Select-Object Name, @{n='DeletedItemSize';e={ `
(Get-MailboxFolderStatistics $_.Identity -FolderScope DeletedItems).FolderAndSubfolderSize }}}
For Messaging Records Management MRM,
http://www.msexchange.org/articles_tutorials/exchange-server-2007/compliance-policies-archiving/exchange-2007-messaging-records-management-part1.htmlMVP Exchange Server
Free Windows Admin Tool Kit Click here and download it now
January 21st, 2011 10:21pm
Thanks for sharing the script..
about the MRM, I know it was there in E2k7 EMC, but it's not available in E2k10 console.. I beleive it's replaced by retention policies.
Thanks again,
Rakesh
January 22nd, 2011 9:28pm
Hi John,
I want the deleted item size not for individual users but at database level. Like sum of the deleted item size for all users in single database. A script which I can run which gives me similar result for all say 50 databases in a report format. I will appreciate
if you can help me with this.
Free Windows Admin Tool Kit Click here and download it now
January 23rd, 2011 10:44am
On Sun, 23 Jan 2011 15:39:21 +0000, RakeshMishra wrote:
>
>
>Hi John,
>
>I want the deleted item size not for individual users but at database level. Like sum of the deleted item size for all users in single database. A script which I can run which gives me similar result for all say 50 databases in a report format. I will
appreciate if you can help me with this.
PerfMon.
"MSExchangeIS Mailbox \ Total Size of Recoverable Items"
If you want to use Powershell to get the information you can do
something like this (it's "per server" -- you'd have do this fro each
daabase if you want information on each database):
$a = "MSExchangeIS Mailbox", "Total Size of Recoverable Items",
"_Total"
$ctr = new-object System.Diagnostics.PerformanceCounter $a
[void]$ctr.NextValue()
start-sleep 1
$value = $ctr.NextValue()
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
January 23rd, 2011 1:18pm
Hi Rakesh,
Agree with Rich, I think checking your performance monitor is a better way.
For detailed, please see:
http://www.msexchange.org/tutorials/MF022.html
Best regards,
SerenaPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2011 3:10am
Hi,
Agree with Rich, I think checking your performance monitor is a better way.
For detailed, please see:
http://www.msexchange.org/tutorials/MF022.html
Best regards,
Serena
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
January 24th, 2011 3:10am
I think we have lost the track of discussion: I need to report only the size of deleted items which appears in mailbox ( not the deleted item retention - hard deleted emails. Obviously this would not be reported in performance counter.
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2011 11:43am
The command is not working as it supposed to. It gives me the size of deleted itmes only for the last user in the list.
January 24th, 2011 12:15pm
please ignore..I was able to get the report I wanted..I ran the following command:
get-mailbox -resultsize unlimited | Get-MailboxFolderStatistics | where{$_.name -like "deleted* "} | ft identity, FolderAndSubfolderSize >c:/report\report.csv
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2011 5:43pm
Thanks for the follow up and glad to hear you resolved issue. I will have to put that script in my Exchange 2010 file.MVP Exchange Server
January 24th, 2011 6:46pm
Hi,
Thanks for sharing.
Best regards,
Serena
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2011 8:06pm
On Sun, 23 Jan 2011 15:39:21 +0000, RakeshMishra wrote:
>I want the deleted item size not for individual users but at database level. Like sum of the deleted item size for all users in single database. A script which I can run which gives me similar result for all say 50 databases in a report format. I will
appreciate if you can help me with this.
$del = 0
Get-Mailbox -database <dbname> | foreach {
$del += (Get-MailboxFolderStatistics $_.Identity -FolderScope
DeletedItems).FolderAndSubfolderSize.ToBytes()
}
$del
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
January 24th, 2011 9:52pm
On Mon, 24 Jan 2011 22:39:33 +0000, RakeshMishra wrote:
>
>
>please ignore..I was able to get the report I wanted..I ran the following command:
>
>get-mailbox -resultsize unlimited | Get-MailboxFolderStatistics | where{$_.name -like "deleted* "} | ft identity, FolderAndSubfolderSize >c:/report\report.csv
But that gives you the sizes of the deleted items in individual
mailboxes, not the size of all deleted items in mailboxes per
database.
---
Rich Matheisen
MCSE+I, Exchange MVP
--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
January 24th, 2011 11:31pm
Yes, I know, I ran the same command with database parameter.
January 27th, 2011 5:40pm