"Samba dropping every 1-2 hours", "Mapped drives under Windows 2000" and "Samba and Lotus Notes"

David Milligan davidm at comrad.co.nz
Tue Nov 7 20:18:11 GMT 2000

I'm not sure if this is relevant to your situation as it relates to shared
drives on a Win98 PC or NT server and I don't know if it will help on the
client side at all.

I was using Windows 98 to share some drives and had issues with drives
disconnecting as you have described.  After doing some  research I
discovered that Windows NT uses two different autodisconnect parameters; one
for disconnecting Remote Access Service (RAS) connections and another for
disconnecting LAN connections. The RAS Autodisconnect parameter is well
documented in the Windows NT Server Remote Access Service manual on page 82,
but the LAN version is undocumented.

The LAN autodisconnect parameter in the registry at
. Its function 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:

Net Config Server /autodisconnect:30

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

NOTE: It is preferable to modify the LAN autodisconnect directly in the
registry. If you modify it at the command line, Windows NT may turn off its
autotuning functions.

The valid value range if you edit the LAN autodisconnect parameter in the
registry is 0 to 4294967295 (Oxffffffff). If you configure the
autodisconnect option to -1 at the command prompt, Autodisconnect is set to
the upper value in the registry. This is approximately 8,171 years (not
tested should be long enough to be the equivalent of turning autodisconnect

As advised I was using Win98 to share a drive and I have found that often
registry settings which in NT are in the "LanManServer\Parameters" key are
found in Windows 95/98 in the "VxD\VNETSUP" key. I added an entry on my
shared Win98 PC for "Autodisconnect" in this key and set it to decimal 65000
and voila! no more disconnects!

NB : I had experimented with other settings to do with session timeouts and
keep alives but they did no good.

David Milligan
Technical Manager
Software Innovations Ltd
Phone:		64 3 3664881
Fax:		64 3 3798465

> -----Original Message-----
> From: samba-admin at lists.samba.org
> [mailto:samba-admin at lists.samba.org]On
> Behalf Of Jason Todd
> Sent: Wednesday, 8 November 2000 03:59
> To: samba at lists.samba.org
> Subject: Re: "Samba dropping every 1-2 hours", "Mapped drives under
> Windows 2000" and "Samba and Lotus Notes"
> I (and probably lots of people) don't yet fully understand
> each and every
> parameter, but is this problem related to the "deadtime"
> parameter?  Just
> curious.
> Jason

More information about the samba mailing list