Wednesday, December 13, 2017

Top 20 mailbox size

 foreach($database in get-mailboxdatabase) {Get-Mailbox -ResultSize Unlimited -database $databas

e.name| Get-MailboxStatistics | Sort-Object TotalItemSize| Select-Object DisplayName,database,TotalItemSize -last 20}

Login