Adds an Exchange Connector for a specified tenant using a template.
The Add-CIPPExchConnector function adds an Exchange Connector for a specified tenant using either a template GUID or template name. If neither the TemplateGuid nor TemplateName is provided, an error is thrown. The function retrieves the template, converts it to JSON, and sends a POST request to the '/api/AddExConnector' endpoint with the necessary parameters.
![]()
![]()
The default domain of the customer tenant for which the Exchange Connector is being added. This parameter is mandatory.
![]()
![]()
The GUID of the template to be used for adding the Exchange Connector. This parameter is optional.
![]()
![]()
The name of the template to be used for adding the Exchange Connector. This parameter is optional.
P
>
A
d
d
-
C
I
P
P
E
x
c
h
C
o
n
n
e
c
t
o
r
-
C
u
s
t
o
m
e
r
T
e
n
a
n
t
D
e
f
a
u
l
t
D
o
m
a
i
n
"
e
x
a
m
p
l
e
.
c
o
m
"
-
T
e
m
p
l
a
t
e
G
u
i
d
"
1
2
3
4
5
6
7
8
-
1
2
3
4
-
1
2
3
4
-
1
2
3
4
-
1
2
3
4
5
6
7
8
9
0
1
2
"
P
>
A
d
d
-
C
I
P
P
E
x
c
h
C
o
n
n
e
c
t
o
r
-
C
u
s
t
o
m
e
r
T
e
n
a
n
t
D
e
f
a
u
l
t
D
o
m
a
i
n
"
e
x
a
m
p
l
e
.
c
o
m
"
-
T
e
m
p
l
a
t
e
N
a
m
e
"
D
e
f
a
u
l
t
T
e
m
p
l
a
t
e
"