Powershell

Retrieve information about an Exchange 2007 Server

If you want to retrieve information about an exchange server you can use the GET-EXCHANGESERVER commandlet. This will retrieve information like the computer name, OU location, site name etc etc. The syntax of the command is:

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

    Get-ExchangeServer -Domain <Fqdn> [-DomainController <Fqdn>] [-Status <Swit
    chParameter>] [<CommonParameters>]

An example output is:

[PS] C:\>GET-EXCHANGESERVER EXCH2007MAIL | FORMAT-LIST

Name                              : EXCH2007MAIL
DataPath                          : C:\Program Files\Microsoft\Exchange Server\
                                    Mailbox
Domain                            : EXCHANGELAB.LOCAL
Edition                           : StandardEvaluation
ExchangeLegacyDN                  : /o=EXCHORG/ou=Exchange Administrative Group
                                     (FYDIBOHF23SPDLT)/cn=Configuration/cn=Serv
                                    ers/cn=EXCH2007MAIL
Fqdn                              : EXCH2007MAIL.EXCHANGELAB.LOCAL
IsHubTransportServer              : True
IsClientAccessServer              : True
IsExchange2007OrLater             : True
IsEdgeServer                      : False
IsMailboxServer                   : True
IsMemberOfCluster                 : No
IsProvisionedServer               : False
IsUnifiedMessagingServer          : False
NetworkAddress                    : {ncacn_vns_spp:EXCH2007MAIL, netbios:EXCH20
                                    07MAIL, ncacn_np:EXCH2007MAIL, ncacn_spx:EX
                                    CH2007MAIL, ncacn_ip_tcp:EXCH2007MAIL.EXCHA
                                    NGELAB.LOCAL, ncalrpc:EXCH2007MAIL}
OrganizationalUnit                : EXCHANGELAB.LOCAL/EXCH2007MAIL
AdminDisplayVersion               : Version 8.2 (Build 176.2)
Site                              : EXCHANGELAB.LOCAL/Configuration/Sites/Defau
                                    lt-First-Site-Name
ServerRole                        : Mailbox, ClientAccess, HubTransport
ErrorReportingEnabled             :
StaticDomainControllers           : {}
StaticGlobalCatalogs              : {}
StaticConfigDomainController      :
StaticExcludedDomainControllers   : {}
CurrentDomainControllers          : {}
CurrentGlobalCatalogs             : {}
CurrentConfigDomainController     :
ProductID                         :
IsExchange2007TrialEdition        : True
IsExpiredExchange2007TrialEdition : False
RemainingTrialPeriod              : 118.11:28:30.3516609
IsValid                           : True
OriginatingServer                 : DC1.EXCHANGELAB.LOCAL
ExchangeVersion                   : 0.1 (8.0.535.0)
DistinguishedName                 : CN=EXCH2007MAIL,CN=Servers,CN=Exchange Admi
                                    nistrative Group (FYDIBOHF23SPDLT),CN=Admin
                                    istrative Groups,CN=EXCHORG,CN=Microsoft Ex
                                    change,CN=Services,CN=Configuration,DC=EXCH
                                    ANGELAB,DC=LOCAL
Identity                          : EXCH2007MAIL
Guid                              : 03987987-4117-4de9-864a-7250510fac31
ObjectCategory                    : EXCHANGELAB.LOCAL/Configuration/Schema/ms-E
                                    xch-Exchange-Server
ObjectClass                       : {top, server, msExchExchangeServer}
WhenChanged                       : 04/01/2010 08:50:03
WhenCreated                       : 04/01/2010 07:46:10

Leave a Reply

Your email address will not be published. Required fields are marked *