AuthScheme Parameter (Connect-Exchange Cmdlet)
The scheme used for authentication. Accepted entries are NTLM, Basic, Digest, None, Negotiate, OAuth, AzureAD, AzureServicePrincipal and AzureMSI.
Syntax
Connect-Exchange -AuthScheme string
Possible Values
OAuth, AzureAD, AzureMSI, AzureServicePrincipal, AzureServicePrincipalCert, NTLM, Digest, Negotiate, Basic, NONEData Type
cstr
Default Value
"Basic"
Remarks
Together with Password and User, this field is used to authenticate against the server. Basic is the default option. Use the following options to select your authentication scheme:
- NTLM: Set this to use your Windows credentials for authentication.
- Basic: Set this to use HTTP Basic authentication.
- Digest: Set this to use HTTP Digest authentication.
- Negotiate: If AuthScheme is set to Negotiate, the cmdlet will negotiate an authentication mechanism with the server. Set AuthScheme to Negotiate to use Kerberos authentication.
- OAuth: OAuth 2.0 is only supported for Exchange Online platform.
- AzureAD: Set this to perform Azure Active Directory OAuth authentication. This authentication scheme is applicable only for the Exchange_Online Platform.
- AzureMSI: Set this to automatically obtain Managed Service Identity credentials when running on an Azure VM. This authentication scheme is applicable only for the Exchange_Online Platform.
- AzureServicePrincipal: Set this to authenticate as an Azure Service Principal. This authentication scheme is applicable only for the Exchange_Online Platform.
- AzureServicePrincipalCert: Set this to authenticate as an Azure Service Principal Certificate. This authentication scheme is applicable only for the Exchange_Online Platform.