How to adjust server 2025 to not disconnect the SMB Share / How to change smb idle session time on server 2025

How to  adjust server 2025 to not disconnect the SMB Share

 

This is the simplest method for configuring the server-side timeout settings.

  1. Open an elevated Command Prompt or PowerShell as an administrator.
  2. To see the current autodisconnect timeout setting in minutes, run the following command:
  3. net config server
  4. To disable the automatic session timeout, enter this command:
  5. net config server /autodisconnect:-1
  6. 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.

  1. Press Windows Key + R, type secpol.msc, and press Enter.
  2. In the Local Security Policy window, navigate to Security Settings > Local Policies > Security Options.
  3. Find and double-click the policy named Microsoft network server: Amount of idle time required before suspending session.
  4. 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.

  1. Click OK to apply the new setting. 


 

 

 

 

Comments are closed

Latest Comments

No comments to show.