JSI Tip 0019 - Disabling autodisconnect.

Jerold Schulman

December 31, 1996

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

Windows NT uses two different autodisconnect parameters; onefor disconnecting Remote Access Service (RAS) connections andanother for disconnecting LAN connections. The RAS Autodisconnectparameter is well documented in the Windows NT Server Remote AccessService manual on page 82, but the LAN version is undocumented.

You can find the LAN autodisconnect parameter in theregistry at:
HKEY_LOCAL_MACHINESystemCurrentControlSetServicesLanmanServerParameters
Purpose: The function is to disconnect idle sessions after a setnumber of minutes. The number of minutes can be set at a commandprompt using the Net Config Server command. For example, to setthe autodisconnect value to 30 minutes:

Net Config Server /autodisconnect:30

The valid value range of this REG_DWORD value is -1to 65535 minutes at the command line. To disable autodisconnectset it to: -1
Setting Autodisconnect to 0 does not turn it off and results invery fast disconnects, within a few seconds of idle time. (However,the RAS Autodisconnect parameter is turned off if you set it toa value of 0.)

NOTE: It is preferable to modify theLAN autodisconnect directly in the registry. If you modifyit at the command line, Windows NT may turn off its autotuningfunctions.

The valid value range if you edit the LAN autodisconnectparameter in the registry is 0 to 4294967295 (Oxffffffff). Ifyou configure the autodisconnect option to -1 at the commandprompt, Autodisconnect is set to the upper value in the registry.This is approximately 8,171 years (not testedshould be long enough to be the equivalent of turning autodisconnectoff.


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