WIN.INI Not Found by SETLS from DOS on LAN Manager Clients

Last reviewed: April 22, 1997
Article ID: Q124381

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

SYMPTOMS

When you run NET LOGON on a LAN Manager client from the AUTOEXEC.BAT file, and an SMSLS.BAT file exists in the client's logon script, SETLS16.EXE cannot find the WIN.INI file pointed to by the SMSLS.INI file on the logon server. This causes inventory to be reported to the logon server's Systems Management Server site instead of the domain/site pointed to by the [SMS] section in the WIN.INI file.

CAUSE

SETLS16 looks for the WINDIR environment variable and from that determines the location of WIN.INI. This fails because WINDIR doesn't exist yet when you execute the logon script. This is true regardless of the current directory the user is in. Putting WIN.INI in drive C allows this to work. Logging on to the domain from within Windows works.

This does not affect CLI_DOS which looks in the WINDIR and also walks the PATH statement looking for WIN.INI.

WORKAROUND

Do one of the following to work around this problem:

  • Logon from within Windows only.

    -or-

  • Set up the AUTOEXEC.BAT file to contain the line "SET windir=C:\<windows directory>". Note the variable "windir" needs to be in lowercase.

STATUS

Microsoft has confirmed this to be a problem in Systems Management Server versions 1.0 and 1.1. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: sms prodsms Win16 resource master
Keywords : kbbug1.00 kbbug1.10 kbnetwork ntinterop smsinv
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.