I have exchange server hosting emails for multiple domains. How can I make the Get-MailboxStatistics
cmdlet to display mailboxes and sizes only on mailboxes that end with a certain domain?
Something like Get-MailboxStatistics WHERE EmailAddressEndsWith *emaildomain.com
Thanks.
Just create a report which shows all mailboxes which have an mail address ending on @YOURDOMAIN:
you can run it like this also,