Skip to content

Instantly share code, notes, and snippets.

@SevenLayerJedi
Created January 14, 2019 18:30
Show Gist options
  • Save SevenLayerJedi/dbb81ad1b27da8e76861426cbdad2240 to your computer and use it in GitHub Desktop.
Save SevenLayerJedi/dbb81ad1b27da8e76861426cbdad2240 to your computer and use it in GitHub Desktop.
# Random Exchange Commands
# View free space on each DB
Get-MailboxDatabase -Status | sort name | select name,@{Name='DB Size (Gb)';Expression={$_.DatabaseSize.ToGb()}},@{Name='Available New Mbx Space Gb)';Expression={$_.AvailableNewMailboxSpace.ToGb()}}
# Check Exchange Servers Service Health
Test-ServiceHealth
# Return list of Databases (Name, Server, isMounted)
Get-MailboxDatabase -Status | Format-List name,server,mounted
# Return the Queue details
Get-Queue | Select Identity,Status,MessageCount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment