urlreader
urlreader

Reputation: 6615

How to get the fully qualified mailbox server name in exchange server?

The best choice for me in this case is using powershell script, but other suggestions are welcome.

Get-MailboxServer can get the server name, but it is not the fully qualified name.

Thanks

Upvotes: 0

Views: 8542

Answers (2)

Ryan
Ryan

Reputation: 58

fqdn is an attribute returned with the get-exchangeserver cmdlet.

Try (get-exchangeserver MYEXCHANGESERVER).fqdn

Or just run get-exchangeserver | select fqdn to view the fully qualified names for all servers in your environment.

Upvotes: 1

Matthew Wetmore
Matthew Wetmore

Reputation: 988

If you're trying to convert a NETBIOS name to the FQDN, this'll do the trick:

$o = Get-MailboxServer
([System.Net.Dns]::GetHostByName($o)).HostName

Upvotes: 1

Related Questions