How do I configure LAN autodisconnect?

John Savill

May 3, 2000

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. As with RAS its possible to configure a timeout for LAN connectionsafter which idle time the connection will be closed, if you then try and use itthe connection will be reconnected, this will be invisible to you but you willexperience a slight delay

By default this is 15 minutes however it can be changed by directly editingthe registry:

  1. Start the registry editor (regedit.exe)

  2. Move to HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServiceslanmanserverparameters

  3. Double click autodisconnect

  4. Set to decimal and set the number of minutes (from -1 to 4294967295)

  5. Click OK

  6. Close the registry editor

  7. Reboot the machine

You can also configure from the command line but registry is preferred as itdoes not interfere with any of the built-in tuning:

Net Config Server /autodisconnect:60

would disconnect after 60 minutes. Valid is from -1 to 65535.

To turn off the disconnect set to -1 (registry or net config command), DON'Tset to 0 as it will autodisconnect all the time!

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like