Scripts Timeout for Large Transfers or over Slow Links (108471)






This article was previously published under Q108471

SYMPTOMS

Scripts may get cut off when you transfer large amounts of data during a logon script or run a script over a slow link.

CAUSE

This is caused by a hardcoded timeout in code. It was 10 seconds in LAN Manager 2.1 and 30 seconds in LAN Manager 2.2.

RESOLUTION

The default timeout has been left at 30 seconds, although new code allows you to set the timeout by adding an entry to the LANMAN.INI file. To change the default timeout, add a section to LANMAN.INI, [windows], and insert a logintimeout value between 1 and 32000 (seconds).

For example, to set the timeout at 300 seconds:
[windows]
logintimeout=300
				
The change was made in Netapi.dll; the new Netapi.dll is available as CSD01.068.

Modification Type: Major Last Reviewed: 7/30/2001
Keywords: KB108471