Export (0) Print
Expand All

Get-ExchangeServer

Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Get-ExchangeServer cmdlet to obtain the attributes of a specified server. If a server isn't specified, the cmdlet obtains the attributes of all the servers in the Exchange organization.

Bb123873.note(en-us,EXCHG.140).gifNote:
When you run the Get-ExchangeServer cmdlet with no parameters, it returns the attributes of all the servers in the Exchange organization. To return specific server properties (including domain controller information) where the Get-ExchangeServer cmdlet has to contact servers directly or perform a complex or slow calculation, make sure you use the Status parameter.


Get-ExchangeServer [-Identity <ServerIdParameter>] [-DomainController <Fqdn>] [-Status <SwitchParameter>]


Get-ExchangeServer -Domain <Fqdn> [-DomainController <Fqdn>] [-Status <SwitchParameter>]

Parameter Required Type Description

Domain

Required

Microsoft.Exchange.Data.Fqdn

The Domain parameter specifies the fully qualified domain name (FQDN) of the domain.

DomainController

Optional

Microsoft.Exchange.Data.Fqdn

The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that retrieves data from Active Directory.

Identity

Optional

Microsoft.Exchange.Configuration.Tasks.ServerIdParameter

The Identity parameter specifies the identity of the server. If you use this parameter, you can't use the Domain parameter.

Status

Optional

System.Management.Automation.SwitchParameter

The Status parameter specifies the status of the server.

To view all the Exchange server attributes that this cmdlet returns, you must pipe the command to the Format-List cmdlet.

The ExchangeVersion attribute returned is the minimum version of Microsoft Exchange that you can use to manage the returned object. This attribute isn't the same as the version of Exchange displayed in the Exchange Management Console when you select Server Configuration.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Shell Infrastructure Permissions" section in the Exchange and Shell Infrastructure Permissions topic.

Error Description

 

 

Exceptions Description

 

 

This example retrieves the attributes of all the servers in the Exchange organization.

Get-ExchangeServer | Format-List
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft