How to disable SMB Log in Possible Anonymous

In order to disable Anonymous authentication using SMB execute below registry changes from PowerShell as administrator

 

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\LSA" RestrictAnonymous -Type DWORD -Value 1 -Force
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\LSA" RestrictAnonymoussam -Type DWORD -Value 1 -Force

Reboot your server

 Microsoft    
 
Fully optimised SSD hosting

Optimised for WordPress & other applications