Quantcast
Channel: Exchange Server 2013 - Administration, Monitoring, and Performance 论坛
Viewing all articles
Browse latest Browse all 3457

Get-Mailbox PowerShell -Server vs -Servername

$
0
0

Why does the command

       get-mailbox -servername "MyExgServer" not work

                 where

       get-mailbox -server "MyExgServer" does work?

Would this be because the -server is the object of an exchange server and the -servername is a property of the Mailbox that is returned. Perhaps I need to use a where-object statement.

      get-mailbox | Where-Object {$_.servername -eq "MyExgServer"}

Just wanting to understand the difference in approach


Viewing all articles
Browse latest Browse all 3457


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