Monday, May 15, 2017

Powershell commands - Disable or uninstall SMB v1


#  To run powershell as Admin
Start-Process powershell.exe -Verb runAs

#  To display Server Message Block Configuration
Get-SmbServerConfiguration

#  Disable SMBv1 Protocol
Set-SmbServerConfiguration -EnableSMB1Protocol $false -Force

#  Remove SMBv1 Protocol
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol -Remove