Disable SMBv1 on Windows
Last updated:
WINDOWSPOWERSHELL
Remove SMB v1
# Detect
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
# Disable
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
# SMB v1
# Detect
Get-SmbServerConfiguration | Select EnableSMB1Protocol
# Disable
Set-SmbServerConfiguration -EnableSMB1Protocol $false
references:
How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows | Microsoft Learn