How to Change Max Concurrent SMB Sessions in Regedit
Modifying the maximum number of concurrent Server Message Block (SMB)
sessions in the Windows Registry allows workstations to handle higher
volumes of network file transfers and prevent connection limits when
communicating with servers. This guide explains how to adjust the
client-side MaxCmds setting using the Windows Registry
Editor (regedit) to optimize network throughput and prevent
SMB session bottlenecks.
Step-by-Step Guide to Adjusting SMB Sessions
1. Open the Registry Editor
- Press
Windows Key + Rto open the Run dialog box. - Type
regeditand press Enter. - If prompted by User Account Control (UAC), click Yes to grant administrative privileges.
2. Navigate to the LanmanWorkstation Parameters Key
In the address bar at the top of the Registry Editor, paste the following path and press Enter:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
3. Create or Modify the
MaxCmds Value
- Check the right pane for a value named
MaxCmds. - If it does not exist:
- Right-click an empty area in the right pane.
- Select New > DWORD (32-bit) Value.
- Name the new value
MaxCmdsand press Enter.
- Double-click the
MaxCmdsentry to edit it:- Set the Base to Decimal.
- In the Value data field, enter your desired maximum
number of concurrent network commands (commonly set between
256and2048depending on workload requirements; default is typically15to50).
- Click OK to save the changes.
Adjusting Inbound Sessions (LanmanServer)
If you are modifying a workstation to accept more inbound SMB sessions from other devices:
- Navigate to:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters - Create or open the
MaxMpxCtDWORD (32-bit) value. - Switch the base to Decimal and set a value matching
or exceeding your
MaxCmdsrequirement (e.g.,2048). - Click OK.
Apply the Changes
Registry changes to SMB services require a service restart or system reboot to take effect:
Open Command Prompt as an Administrator.
Restart the workstation service by running:
net stop lanmanworkstation /y net start lanmanworkstationAlternatively, restart your computer.