SMBv1 Protocol
Check SMBv1
| # 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
| # 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
| # 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.