Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

Remove-CMExchangeServer

Remove-CMExchangeServer

Removes an Exchange Server object from Configuration Manager.

Syntax

Parameter Set: SearchBySiteCodeMandatory
Remove-CMExchangeServer -Address <String> -SiteCode <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The Remove-CMExchangeServer cmdlet removes a Microsoft Exchange Server object from Microsoft System Center 2012 Configuration Manager for one or more System Center 2012 Configuration Manager sites. This cmdlet does not uninstall the Exchange Server.

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

Parameters

-Address<String>

Specifies a URL for the Exchange Server.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Force

Removes the Exchange Server object without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.


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?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (http://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: Remove an Exchange Server

This command removes the Exchange Server with the specified address for the site code PE1.


PS C:\> Remove-CMExchangeServer -Address "http://localhost/PowerShell" -SiteCode "PE1"

Related topics

Community Additions

ADD
Show:
© 2016 Microsoft