How to adjust server 2025 to not disconnect the SMB Share
This is the simplest method for configuring the server-side timeout settings.
- Open an elevated Command Prompt or PowerShell as an administrator.
- To see the current autodisconnect timeout setting in minutes, run the following command:
- net config server
- To disable the automatic session timeout, enter this command:
- net config server /autodisconnect:-1
- Restart the Server service or reboot the server for the change to take effect. You can restart the service with this command:
net stop server && net start server
How to change smb idle session time on server 2025
This method is preferred for local configuration as it is less error-prone than editing the registry directly.
- Press Windows Key + R, type secpol.msc, and press Enter.
- In the Local Security Policy window, navigate to Security Settings > Local Policies > Security Options.
- Find and double-click the policy named Microsoft network server: Amount of idle time required before suspending session.
- In the dialog box, enter the new idle time value in minutes.
1. A value of 0 will cause sessions to disconnect as quickly as reasonably possible.
2. A value of 99999 (208 days) will effectively disable the timeout.
- Click OK to apply the new setting.
Comments are closed