Closing LAN Manager Logon Script Dialog Box Automatically

Last reviewed: September 9, 1996
Article ID: Q124245
The information in this article applies to:

  - Microsoft Windows NT Server version 3.5
  - Microsoft Windows for Workgroups version 3.11

Logon scripts assigned to a user account run when the user logs on, regardless of the user's workstation type. If the workstation is running Windows for Workgroups, the LAN Manager Logon Script dialog box remains on the screen until you choose Cancel. In LAN Manager 2.2, the logon process creates a zero-byte file called LMSCRIPT.$$$. The presence of this file indicates the logon script processing is complete.

To prevent the LAN Manager Logon Script dialog box from remaining on the screen of a Windows for Workgroups computer, add the following commands as the last two lines in the logon script batch file

   cd\<windir>
   echo.> \<windir>\lmscript.$$$

where <windir> is your Windows for Workgroups directory.

The file is created and then deleted from the hard drive. When the script completes, the dialog box is cleared from the screen; the domain validation message subsequently appears.


Additional reference words: wfw wfwg 3.50 3.11 prodnt
KBCategory: kbnetwork
KBSubcategory: ntdomain



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 9, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.