You can find the LAN Autodisconnect parameter in the registry under the subtree HKEY_LOCAL_MACHINE under the subkey: \System\CurrentControlSet\Services\LanmanServer\Parameters
NOTE: The preceding entry must be located on the computer that has the share or shares.
The purpose is to disconnect idle sessions after a set number of minutes. The number of minutes can be set at a command prompt using the net config server command.
For example, to set the Autodisconnect value to 30 minutes, you would run the following command line: net config server /autodisconnect:30
The valid value range is -1 to 65535 minutes at the command line. To disable Autodisconnect set it to -1.
- It is preferable to modify the LAN Autodisconnect directly in the registry.