Share via


Default SMB settings in Windows 10

Question

Thursday, March 23, 2017 7:06 AM

Hi,

So I was troubleshooting a networking issue on Windows 10, scan to network folder doesn't work, and long story short, I enabled SMB1 via the commands in https://www.technibble.com/forums/threads/microsoft-networking-smb-configuration-in-windows-10.68432/

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi
sc.exe config mrxsmb10 start= auto
sc.exe config mrxsmb20 start= auto
reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v SMB1 /t REG_DWORD /d 1 /f
reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v SMB2 /t REG_DWORD /d 1 /f
powershell set-smbserverconfiguration -enablesmb1protocol $true
powershell set-smbserverconfiguration -enablesmb2protocol $true 

It didn't solve the problem, but that's not the issue here.

Now I would like to reverse what I did and restore the SMB settings to the way they were, to the Windows 10 defaults.

I looked at an out of the box Windows 10 PC (both Dell Optiplexes), and I know most of the changes I need to make ...

... but not all.

Below is a list of the commands executed to enable SMB1, and notes for each command on how to reverse it, with any questions indicated.

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/mrxsmb20/nsi

         -> To Do: Remove the mrxsmb10 dependency:
         -> depend= bowser/mrxsmb20/nsi

sc.exe config mrxsmb10 start= auto

         -> Windows 10 starts mrxsmb10 by default?? was kind of surprised to see this

sc.exe config mrxsmb20 start= auto

         -> no change

reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v SMB1 /t REG_DWORD /d 1 /f

         -> delete SMB1 parameter

reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v SMB2 /t REG_DWORD /d 1 /f

          -> delete SMB2 parameter

It's the following commands I'm not sure about. Now I know you should not disable SMB2 because that would take out SMB3 as well. But what about SMB1? How do you reverse this command? Or not?

powershell set-smbserverconfiguration -enablesmb1protocol $true

Thanks in advance.

All replies (4)

Friday, March 24, 2017 6:07 AM

Hi,

We could take use of the following PowerShell command to determine which SMB version is used on host machine:

PS C:\ dir \localhost\c$

After that , type the following command in 10 seconds:

PS C:\ Get-SmbConnection -ServerName localhost

Besides, SMBv1 protocol is supported in Windows 10. there is a good article talking about how to determine the SMB version:

Windows Server 2012 R2: Which version of the SMB protocol (SMB 1.0, SMB 2.0, SMB 2.1, SMB 3.0 or SMB 3.02) are you using?

https://blogs.technet.microsoft.com/josebda/2013/10/02/windows-server-2012-r2-which-version-of-the-smb-protocol-smb-1-0-smb-2-0-smb-2-1-smb-3-0-or-smb-3-02-are-you-using/

Regards

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, March 24, 2017 6:07 AM

Dear Mark,

In addition:

View the current SMB server configuration settings

Get-SmbServerConfiguration

To change an SMB server configuration setting, like SMB Signing

Set-SmbServerConfiguration -RequireSecuritySignature $true

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].


Friday, March 24, 2017 10:42 AM

Hi,

Thank you for your reply. I plan to view the SMB configuration for both PC's, one out of the box and the one I ran the command file on, and check for any differences. But it's going to be awhile before I can get back to this.

Thanks again


Wednesday, April 19, 2017 1:38 AM

We have not heard from you in a couple of days. Please post back at your convenience if we can assist further.

If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.

Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].