PS 7.1.3 and SMBv1/SMBv2 detection and disabling commands blocks PS
See original GitHub issueHi folks,
based on How to detect, enable and disable SMBv1, SMBv2, and SMBv3 in Windows. Please see my testings:
## Steps to reproduce
SMBv1 detection:
1. Start PS 7.1.3 as admin
2. Run Get-WindowsOptionalFeature -Online -FeatureName smb1protocol
**Result: PS blocked**
SMBv1 disabling:
1. Start PS 7.1.3 as admin
2. Run Disable-WindowsOptionalFeature -Online -FeatureName smb1protocol
**Result: PS blocked**
SMBv2 detection:
1. Start PS 7.1.3 as admin
2. Run Get-WindowsOptionalFeature -Online -FeatureName smb2protocol
**Result: EnableSMB2Protocol: true ** (fast and PS does not blocks)
SMBv2 disabling:
1. Start PS 7.1.3 as admin
2. Run Disable-WindowsOptionalFeature -Online -FeatureName smb2protocol
**Result: PS blocked**
SMBv3 detection:
1. Start PS 7.1.3 as admin
2. Run Get-WindowsOptionalFeature -Online -FeatureName smb3protocol
**Result: EnableSMB2Protocol: blank message ** (fast without blocked)
Expected behavior
- SMBv1 detection: Some message describing if protocol is installed or not as fast as possible.
- SMBv1 disabling: Some message describing if protocol has been disabled as fast as possible.
- SMBv2 detection: seems OK
- SMBv2 disabling: Some message describing if protocol has been disabled as fast as possible.
- SMBv3 detection: Some message describing if protocol is installed or not as fast as possible.
Actual behavior
PS is blecked and must be close by X close windows button
## Environment data
Name Value
---- -----
PSVersion 7.1.3
PSEdition Core
GitCommitId 7.1.3
OS Microsoft Windows 10.0.19043
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
How to detect, enable and disable SMBv1, SMBv2, and ...
Here are the steps to detect, disable and enable SMBv1 client and server by using PowerShell commands with elevation. Note. The computer will ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I am referring I cannot break the execution of the command with CTRL+Break and I have to close PS using X button on top right of the PS window
Hi @jmroyb is this still an issue with the latest version of PowerShell? I am unable to reproduce.