Changes between Initial Version and Version 1 of Fix Windows SMB Networking Issues


Ignore:
Timestamp:
11/15/23 09:22:45 (6 months ago)
Author:
Paul Kulda
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Fix Windows SMB Networking Issues

    v1 v1  
     1= Fix Windows SMB Networking Issues =
     2
     3{{{
     4The following or similar registry settings from other threads have not worked:
     5
     6[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider]
     7"RestoreConnection"=dword:00000000
     8"RestoreTimeout"=dword:00000004
     9"DeferConnection"=dword:00000000
     10
     11[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation\Parameters]
     12"SessTimeout"=dword:0000000a
     13"ExtendedSessTimeout"=dword:00000000
     14"ReconnectTimeout"=dword:00000004
     15
     16
     17
     18}}}
     19
     20{{{
     21changed to
     22
     23LanmanWorkstation,webclient,RDPNPWindows Registry Editor Version 5.00
     24
     25 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider]
     26 "RestoreConnection"=dword:00000000
     27
     28 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\HwOrder]
     29 "ProviderOrder"="RDPNP,LanmanWorkstation,webclient,P9NP"
     30
     31 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\Order]
     32 "ProviderOrder"="RDPNP,LanmanWorkstation,webclient,P9NP"
     33
     34 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider\ProviderOrder]
     35 "LanmanWorkstation"=dword:000007d0
     36 "P9NP"=dword:000001f4
     37 "RDPNP"=dword:000003e8
     38 "webclient"=dword:00000bb8
     39
     40}}}
     41
     42{{{
     43Under the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NetworkProvider,
     44
     45the RestoreConnection DWORD value 0
     46
     47
     48used to block Explorer from auto-connecting to network shares.
     49
     50also
     51
     52You can create a registry key to disable the automatic reconnection after login. Please take care when editing the registry, as unintended changes may cause system instability.
     53
     54    As an administrator, hold the Windows Key, while pressing “R” to bring up the Run dialog box.
     55    Type “Regedit“, then press “Enter“.
     56    The Registry Editor window appears. Navigate to the following location in the Registry.
     57        HKEY_LOCAL_MACHINE
     58        SYSTEM
     59        CurrentControlSet
     60        Control
     61        NetworkProvider
     62    Give “RestoreConnection” one of the values of “0” to disabled the mapped network drive message.
     63    If this value doesn’t exist, right-click, then choose “New” > “DWORD Value“ and name it “RestoreConnection”. Make sure you have "0" set as value.
     64    Restart your system.
     65
     66
     67}}}
     68
     69{{{
     70SMBv1 Only
     71
     72I have found another thread with similar issues.   I'm going to give this a go as it looks very promising.
     73
     74https://community.spiceworks.com/topic/2277832-windows-10-2004-can-t-access-network-shares-and-old-2003-server?page=1
     75
     76Just in case anyone is still dealing with this there does appear to be a functioning work around.  It'll at least get us by until we can finally and fully deprecate our SMB1 shares.
     77
     78The trick is to add the registry key "ProviderFlags" as a REG_DWORD with a value of 1 (0x00000001) to HKEY_CURRENT_USER\Network\*SMBv1 Drive Letter*
     79
     80Then reboot or log on/off.  It fixes the perpetual "reconnecting" status of the SMBv1 drive at logon and everything has been functioning normally and quickly for users we've added that registry key.  Only needs to be added to the drive letters under Network that correspond to SMBv1 shares.
     81
     82Credit goes to user LeeB1430 in this thread.
     83
     84EDIT/UPDATE:  This is helping ALOT with my connections.  I initially created one user with the connection and this fix, all OK.  Another user with just the connection and they're virtually unusable.  Quick change to the registry and restart then OK.
     85
     86}}}
     87
     88