Get-CMExchangeServer

Gets a Configuration Manager Exchange Server object.

Syntax

Get-CMExchangeServer
   [-DisableWildcardHandling]
   [-ExchangeServerUrl <String>]
   [-ForceWildcardHandling]
   [-SiteCode <String>]
   [<CommonParameters>]

Description

The Get-CMExchangeServer cmdlet gets an object that represents a Microsoft Exchange Server that Microsoft System Center Configuration Manager uses.

Configuration Manager works with Exchange Server to manage mobile devices that cannot run Configuration Manager clients.

Examples

Example 1: Get all Exchange Server systems

PS C:\> Get-CMExchangeServer

This command gets all the Exchange Server items for a Configuration Manager server.

Example 2: Get an Exchange Server for a site

PS C:\> Get-CMExchangeServer -SiteCode "PE1"

This command gets an Exchange Server for the site identified by the site code PE1.

Example 3: Get a specified nextref_exchange

PS C:\> Get-CMExchangeServer -Address "http://localhost/PowerShell"

This command gets the Exchange Server with the specified address.

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExchangeServerUrl
Type:String
Aliases:Address
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SiteCode

Specifies the site code for a Configuration Manager site associated with the Exchange Server.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False