Sets the state and type of an Exchange Connector for a specific customer tenant.
The Set-CIPPExchConnector function is used to edit the state and type of an Exchange Connector for a specific customer tenant. It sends a REST API request to update the connector settings.
![]()
![]()
The ID of the customer tenant for which the Exchange Connector needs to be edited.
![]()
![]()
The state of the Exchange Connector. Valid values are "Enable" and "Disabled".
PS > Set-CIPPExchConnector -CustomerTenantID "contoso.onmicrosoft.com" -State "Enable" -Guid "abcdefg" -Type "Inbound"
This example sets the state of the Exchange Connector for the customer tenant with ID "contoso.onmicrosoft.com" to "Enable", using the GUID "abcdefg" and the type "Inbound".