Get-CMExchangeServer
Get-CMExchangeServer
Gets a Configuration Manager Exchange Server object.
Syntax
Parameter Set: SearchBySiteCode
Get-CMExchangeServer [-Address <String> ] [-SiteCode <String> ] [ <CommonParameters>]
Detailed Description
The Get-CMExchangeServer cmdlet gets an object that represents a Microsoft Exchange Server that Microsoft System Center 2012 SP1 Configuration Manager uses.
Configuration Manager works with Exchange Server to manage mobile devices that cannot run Configuration Manager clients.
Parameters
-Address<String>
Specifies a URL for the Exchange Server.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-SiteCode<String>
Specifies the site code for a Configuration Manager site associated with the Exchange Server.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Get all Exchange Server systems
This command gets all the Exchange Server items for a Configuration Manager server.
PS C:\> Get-CMExchangeServer
Example 2: Get an Exchange Server for a site
This command gets an Exchange Server for the site identified by the site code PE1.
PS C:\> Get-CMExchangeServer -SiteCode "PE1"
Example 3: Get a specified Exchange Server
This command gets the Exchange Server with the specified address.
PS C:\> Get-CMExchangeServer -Address "https://localhost/PowerShell"