Description
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Typo in
Get-Foo
cmdlet" instead of "Typo." - Verify Version: If there is a mismatch between documentation and the behavior on your system, ensure that the version you are using is the same as the documentation. Check this box if they match or the issue you are reporting is not version specific.
Links
- https://github.com/MicrosoftDocs/windows-powershell-docs/blob/f8997a110d7d1de2d717568a0b266dd3fcb722b9/docset/winserver2019-ps/smbshare/Set-SmbServerConfiguration.md
- https://learn.microsoft.com/en-us/powershell/module/smbshare/set-smbserverconfiguration?view=windowsserver2022-ps
Summary
According to the documentation of the Set-SmbServerConfiguration cmdlet it looks to me like it easily possible to enforce the usage of SMBv3, by just running
Set-SmbServerConfiguration -EnableSMB1Protocol $false
Set-SmbServerConfiguration -EnableSMB2Protocol $false
or according to #1553 setting the registry keys SMB1
and SMB2
under HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters
to 0
.
Yet, when this is done SMB is completely disabled. So after some testing it only works when enabling the SMB2. That to me however, indicates that it is not possible to enforce usage of SMB3.
Is that true? And if that's they case, I would of course be interested why it is like that as well as suggest to clearly indicate in the documentation. Further, it would be of interested if there is any way/possibility to enfore the usage of the latest SMB version?
Thank's a lot in advance!
Details
No response
Suggested Fix
No response