Skip to content

SMBv1 Protocol

Check SMBv1

1
2
3
4
5
# Local
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol

#Remote
Get-ADComputer -Filter {OperatingSystem -Like "Windows*8.1*" -or OperatingSystem -Like "Windows *10*" -and Enabled -eq $true} | % {icm -cn  $_.Name -EA 0 {Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol | select PSComputerName,State}}

Disable SMBv1

1
2
3
4
5
# Local
Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol

# Remote
Get-ADComputer -Filter {OperatingSystem -Like "Windows*8.1*" -or OperatingSystem -Like "Windows *10*" -and Enabled -eq $true} | % {icm -cn  $_.Name -EA 0 { Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol -norestart}}

Enable SMBv1

1
2
3
4
5
# Local
Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol

# Remote
Get-ADComputer -Filter {OperatingSystem -Like "Windows*8.1*" -or OperatingSystem -Like "Windows *10*" -and Enabled -eq $true} | % {icm -cn  $_.Name -EA 0 { Enable-WindowsOptionalFeature -Online -FeatureName smb1protocol}}

Note

You must restart the computer after you make these changes.