Get-CMExchangeServer

Gets a Configuration Manager Exchange Server object.

Syntax

Get-CMExchangeServer
   [-SiteCode <String>]
   [-ExchangeServerUrl <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<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

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
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
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False