Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

Find the mailbox database size and the count of mailboxes on each database in the same powershell command and list in tabular form

$
0
0

Hi All

Please let me know how to get this command working. Never works the way I expect. Hats off to all you powershell gurus.

[PS] C:\Windows\system32>Get-MailboxDatabase -Status | FT Name,@{Label="Free Space";Expression={$_.AvailableNewMailboxSpace.ToMB()}},@{Label="Size";Expression={$_.DatabaseSize.ToMB()}},@{Name="Number";Expression={(Get-Mailbox -Database $_.name).Count}} | ft -AutoSize


Viewing all articles
Browse latest Browse all 2562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>