LMSCRIPT.PIF and the SMSLS logon script

Last reviewed: April 22, 1997
Article ID: Q126159

The information in this article applies to:
  • Microsoft Systems Management Server versions 1.0 and 1.1

SYMPTOMS

The SMSLS logon script stop responding (hangs) when used with some Windows 3.1 and Windows for Workgroups 3.1 or 3.11 configurations.

CAUSE

When a Windows system logs on to a network, LMSCRIPT.EXE is run on the client to parse and run the logon script. Under some Windows configurations, applications run from the logon script can cause LMSCRIPT.EXE to hang. This problem usually occurs due to a timing problem with the background and foreground processes.

Since LMSCRIPT.EXE is an MS-DOS-based program, a LMSCRIPT.PIF file is used to describe it's required environment. Other drivers or processes running under Windows can take processor cycles away from LMSCRIPT.EXE. This can hang the LMSCRIPT process or cause applications that are running within the logon script to fail.

RESOLUTION

You may be able to reduce or eliminate this problem by modifying the \WINDOWS\SYSTEM\LMSCRIPT.PIF file or by creating a batch file:

Modifying LMSCRIPT.PIF

  1. Run PIF Editor (PIFEDIT.EXE) and open \WINDOWS\SYSTEM\LMSCRIPT.PIF.

  2. Ensure the Execution Background check box is selected. It should be by default.

  3. Select the Execution Exclusive check box.

  4. Save your changes and quit PIF editor.

If this does not resolve the problem, modify the process priorities:

  1. Run PIF Editor (PIFEDIT.EXE) and open \WINDOWS\SYSTEM\LMSCRIPT.PIF.

  2. Choose Advanced, and then increase the Background Priority and Foreground Priority values.

  3. Save your changes and quit PIF editor.

Creating Batch File

Create a batch file called NTLOGON.BAT with the following entries:

   Net Time
   Net Use <network drive>: \\<ServerName>\<SMS Share>
   <network drive>:
   SMSLS.BAT  (SMSLS logon script)
   <local drive C>:


Additional query words: sms prodsms wfw wfwg program information file
Keywords : kbnetwork smshowto
Version : 1.0 1.1
Platform : WINDOWS


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: April 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.