NTLMVersion Parameter (Connect-MySQL Cmdlet)
Specifies the version of the NTLM protocol to use when authenticating with Windows credentials. This setting is only applicable when AuthScheme=NTLM.
Syntax
Connect-MySQL -NTLMVersion string
Possible Values
1, 2Data Type
cstr
Default Value
"1"
Remarks
This property allows you to control which version of the NTLM authentication protocol is used. Two versions are supported:
- 1 – NTLMv1: The original version of the NTLM protocol. It offers basic authentication support but is generally considered less secure.
- 2 – NTLMv2: A more secure and widely recommended version that includes enhanced session security and cryptographic protection.
Set this property to 2 to comply with modern security policies and Active Directory environments that require NTLMv2. Use 1 only if you are connecting to legacy systems that do not support NTLMv2.
Note: Some domain controllers may reject NTLMv1 requests due to security policy restrictions. If authentication fails with version 1, try setting NTLMVersion=2.