Exchange 2013 – Get Mailbox Size Statistics

Here is an Exchange Shell script which is helpful in determining mailbox sizes. Queries all user objects within an OU so it is nifty for producing statistics, especially for disabled users. $mailboxes =  Get-mailbox –OrganizationalUnit “domain.local/CompanyName/Disabled Users” foreach ($mailbox in $mailboxes) {     $name = $mailbox.Name     Get-MailboxStatistics $name | Sort -Property TotalItemSize | Select-Object … Continue reading Exchange 2013 – Get Mailbox Size Statistics

Advertisement

Exchange 2013 – Archiving Disabled Users

Here is an Exchange Shell script to archive all users within an organisational unit (Disabled Users) to a network path. Prerequisite is to grant built-in security group Exchange Trusted Subsystem with modify access to network path. $mailboxes =  Get-mailbox –OrganizationalUnit “DOMAIN.LOCAL/CompanyName/Disabled Users” foreach ($mailbox in $mailboxes) {     $name = $mailbox.Name     if(!(Test-Path "\\[FILESERVER]\Archive$\$name\")) { … Continue reading Exchange 2013 – Archiving Disabled Users