Tacobell2000
asked on
Powershell to calculate amount of space used in a database
Hi there,
I need a script that will calculate the amount of space each person is using in Exchange 2007. In MB please.
Tacobell
I need a script that will calculate the amount of space each person is using in Exchange 2007. In MB please.
Tacobell
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
do you want to include the deleted item retention
this breaks it down by mailbox with both
this breaks it down by mailbox with both
it erased my code
Get-Mailbox | ForEach-Object { $stats = Get-MailboxStatistics $_.Name ;
$size = $stats.totalitemsize.value .tomb() + $stats.totaldeleteditemsiz e.value.to mb();
write-host $stats.displayname $size }
Get-Mailbox | ForEach-Object { $stats = Get-MailboxStatistics $_.Name ;
$size = $stats.totalitemsize.value
write-host $stats.displayname $size }
Change KB to MB for megabyte display or GB to gigabyte..