slicendice said:
There however exist a few Windows command where you can check what SMB version you have activated among other things. But now I can not remember nor find the exact commands for you.
I think you may mean the PowerShell cmdlet:
This will check the actual version of SMB in use.
Many people appear to be having problems with the recent auto-removal of SMB1.
For example, if MS have removed SMB1 (shown as a below):
... then the cmdlet result will be null (shown as b above):
For a more helpful cmdlet which checks SMB1 specifically, you can use:
Code:
(Get-WindowsOptionalFeature -FeatureName SMB1Protocol -Online).State
... which will produce a more verbose result (shown as c below):
I have devices (e.g. Linux) that need SMB1 so, to check quickly, I wrap this in an AutoHotkey script:
Code:
; Prompt to 'Run as Admin', i.e. show UAC dialog
If Not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
clipboard= ; Clear the clipboard
psScript =
(
(Get-WindowsOptionalFeature -FeatureName SMB1Protocol -Online).State | clip
)
RunWait PowerShell.exe -Command %psScript%,, hide
MsgBox, 64, Check SMB1, SMB1 is %clipboard%
ExitApp
If MS have removed SMB1 then this results in:
*********************************************************************************
Note: If, like me, you want to stop MS from automatically removing SMB1 then you can use:
Code:
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Deprecation -NoRestart
I wrap this in AutoHotkey as follows (so I don't even have to open an admin PowerShell commandline window:
Code:
; Prompt to 'Run as Admin', i.e. show UAC dialog
If Not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
psScript =
(
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol-Deprecation -NoRestart
)
RunWait PowerShell.exe -Command %psScript%,, hide
MsgBox, 64, SMB1 Automatic Removal, Done! The feature has been removed.
ExitApp
Hope this helps...