Azure-Samples / Azure-Samples/azure-files-samples
AzFileDiagnostics.ps1 returns an error when LmCompatibilityLevel is greater than 3
- Dominant language
- PowerShell
- Stars
- 261
- Forks
- 202
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 4
Description
Per the documentation of Azure Files, NTLMv1 is _not_ supported by Azure Files. As a result, the AzFileDiagnostics script checks for the presence of an appropriate value (3). If the value does not match, it returns an error and does not continue with the validation process. This seems to be in error, as modes 4 and 5 are identical to mode 3 for client machines (per https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-lan-manager-authentication-level).
It seems like the compatibility level check should be validating if LmCompatibilityLevel is greater than or equal to 3, not just equal.
Contributor guide
Assessment
This issue has not been assessed yet.