24 June 2022

Enable / Disable SMB1 on Windows 10 with Powershell

Powershell Method

Here are the steps to detect, disable and enable SMBv1 client and server by using PowerShell commands.

NOTE: The computer will restart after you run the PowerShell commands to disable or enable SMBv1.
# DETECT
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol


# DISABLE
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol


# ENABLE
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
Found here.