IT Connect

Information technology tools and resources at the UW

Using Set-LMCompatibilityLevel.ps1

A PowerShell script is available to set the registry value HKLM\System\CurrentControlSet\Control\Lsa\LMCompatibilityLevel.

This PS script is available from: Set-LMCompatibilityLevel

 

By default, Set-LMCompatibilityLevel.ps1 will set a value of 5. If the user running this script doesn’t have permission to edit the registry value, it will fail. If there is a group policy which sets this value, that group policy will override this script. If you specify a remote computer, that computer will need WinRM listening.

 

There are two optional parameters: level & computer.

Example usage and other information is available via the standard PowerShell comment-based help system:

      get-help .\Set-LMCompatibilityLevel.ps1