Exchange PowerShell Commands

Here you can see all the Exchange PowerShell scripts and it’s usage. I would keep updating the page with more resources as and when I come across.

Get-Mailbox | where {$_.UseDatabaseQuotaDefaults -eq $False} | select name,prohibit*,issue* | Export-CSV C:\Temp\MailboxQuota.csv -NoTypeInformation ...
Read More
a) This will return a result of all DB with Content Index State  failed. Get-MailboxDatabaseCopyStatus * | where {$_.ContentIndexState -eq ...
Read More
Get-MailboxStatistics -Database DATABASE | ForEach { Update-StoreMailboxState -Database $_.Database -Identity $_.MailboxGuid -Confirm:$false } ...
Read More
Get-MailboxDatabase -Status -identity DATABASENAME | Sort-Object DatabaseSize -Descending | Format-Table Name, DatabaseSize, AvailableNewMailboxSpace ...
Read More
Generate a mailbox statistics report for particular Exchange Database and Export it as CSV Get-MailboxStatistics -database “DATABASE” | sort TotalItemSize ...
Read More