Microsoft KB Archive/115368

= Microsoft Knowledge Base =

Dialog Box Displayed after Logon Script Terminates
Last reviewed: April 22, 1996

Article ID: Q115368

The information in this article applies to:


 * Microsoft LAN Manager version 2.2
 * Microsoft Windows operating system version 3.1
 * Microsoft Windows for Workgroups version 3.11
 * Microsoft Windows 95

SYMPTOMS
When you run the logon script from a workstation, the Windows dialog box telling you to "Please wait while your login is processing" stays on the screen even after the logon script is completed.


 * In Windows 3.1, the dialog box disappears after a while, then you see the logon validation information from the domain.
 * In Windows for Workgroups 3.11, you must click Cancel to receive the logon validation information from the domain.
 * In Windows 95, you must click Cancel to close the "Please wait while your logon script executes..." dialog box. Then the logon validation information from the domain appears.

CAUSE
At the end of a logon script, the logon process creates a zero-byte file named LMSCRIPT.$$$ in the current working directory. The LAN Manager driver looks for that file in the \Windows subdirectory to confirm that the logon script has completed. If the file is there, the driver terminates the logon process; if it is not there, the driver operates as if the logon script is running and terminates the logon process differently depending on the operating system:


 * On a LAN Manager 2.2, Windows version 3.1 client, the logon script has 30 seconds to complete. The logon process waits 30 seconds before removing the "Please wait while your login is processing" dialog box, and sending you the logon validation information from the domain.
 * On a Windows for Workgroups version 3.11 client, you must hit the CANCEL button to remove the dialog box and receive logon validation information from the domain.

WORKAROUND

 * 1) Change the current directory to the \Windows directory at the end of the logon script and create a LMSCRIPT.$$$ file in the \Windows directory as a last command in the logon script.
 * 2) Make sure the last command in the logon script does not return an ErrorLevel equal to 1. To guarantee that a network command does not return with ErrorLevel equal to 1, execute a net command, such as "NET USE" that always returns successfully.

STATUS
Microsoft has confirmed this to be a problem in LAN Manager version 2.2 and Windows for Workgroups version 3.11. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.