Skip to main content

Upgrade the CIFS authentication method- Windows

  • December 2, 2020
  • 0 replies
  • 4755 views

This worklet can be used to remediate vulnerability found by Rapid7 -Weak LAN Manager hashing permitted.

We do it by adding a value in registry.


Evaluation Code:



Exit 1



Remediation Code



$path = ‘HKLM:\SYSTEM\CurrentControlSet\Control\Lsa’


$key = try {

    Get-Item -Path $path -ErrorAction Stop

}

catch {

    New-Item -Path $path -Force

}



New-ItemProperty -Path $key.PSPath -Name LMCompatibilityLevel -Value 5

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings