I would like to use powershell to find all available mail servers in a given network segment, or domain wide. Is this possible and how could you do it?
3 Answers
get-mailboxserver
from the Exchange powershell is supposed to be able to do this.
Name ManagedFolderAssi ClusteredStorageT MapiEncryptionReq stantSchedule ype uired ---- ----------------- ----------------- ----------------- EXCHMAILBOX3 Disabled False EXCHMAILBOX4 Disabled False EXCHMAILBOX1 Disabled False EXCHMAILBOX2 Disabled False
Is there some part of your environment that makes this not work for you?
-
I'd do Get-Exchangeserver - that should do all roles, not just mailbox servers. Aug 27, 2010 at 20:45
If they're exchange, you can probably use Powershell to query AD for that, sure. If they're not exchange, it depends on how you define "mailserver", and regardless, that will be much more difficult.
- Good answer below for Exchange, exactly what I figured there would be.