SMBv1 Disable
Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol
Set-ItemProperty -Path
“HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB1 -Type DWORD -Value 0 -Force
SMBv1 Control
Get-WindowsOptionalFeature -Online -FeatureName smb1protocol
Get-Item HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters | ForEach-Object {Get-ItemProperty $_.pspath}
SMBv1 Enable
Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol
Set-ItemProperty -Path
“HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB1 -Type DWORD -Value 1 -Force
SMBv2 Disable
Set-SmbServerConfiguration -EnableSMB2Protocol $false
Set-ItemProperty -Path
“HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB2 -Type DWORD -Value 0 -Force
SMBv2 Control
Get-SmbServerConfiguration | Select EnableSMB2Protocol
Get-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters | ForEach-Object {Get-ItemProperty $_.pspath}
SMBv2 Enable
Set-SmbServerConfiguration -EnableSMB2Protocol $true
Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” SMB2 -Type DWORD -Value 1 -Force