SMBv1 via PowerShell
Here are the steps to detect, disable and enable SMBv1 client and server by using PowerShell commands with elevation.
NB: The computer will need to be restarted to complete enabling or disabling SMBv1.
- Detect:
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
- Disable:
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
- Enable:
Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
You can detect SMBv1 status, without elevation, by running:
Get-SmbServerConfiguration | Format-List EnableSMB1Protocol.