The Server Message Block (SMB) Protocol is a network file sharing protocol, and as implemented in [[Windows]] is known as Microsoft SMB Protocol.^[[Microsoft SMB Protocol and CIFS Protocol Overview - Win32 apps | Microsoft Learn](https://learn.microsoft.com/en-us/windows/win32/fileio/microsoft-smb-protocol-and-cifs-protocol-overview)] ## How to remove SMBv1 via PowerShell Here are the steps to detect, disable and enable SMBv1 client and server by using PowerShell commands with elevation. > [!Note] The computer will restart after you run the PowerShell commands to disable or enable SMBv1. Detect: ```PowerShell Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol ``` Disable: ```PowerShell Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol ``` Enable: ```PowerShell Enable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol ```