Logon Scripts for Multiple Clients

Last reviewed: January 6, 1998
Article ID: Q136073
The information in this article applies to:
  • Microsoft Windows NT Workstation version 3.51
  • Microsoft Windows NT Server version 3.51
  • Microsoft LAN Manager version 2.2c
  • Microsoft Windows for Workgroups version 3.11
  • Microsoft Windows 95

SUMMARY

To have a logon script batch file call another batch file, you have to write it specifically for the type of client logging on to the network. This article gives an example of how to write such a batch file.

MORE INFORMATION

Windows NT is currently the only client that uses a Universal Naming Convention (UNC) connection for the logon script. If your Windows NT logon script contains the commands NET USE and PAUSE, you see a connection to:

   \\LogonServer\NETLOGON

in the Windows NT logon command prompt window.

Windows for Workgroups and LAN Manager connect to the NETLOGON share using the Z: drive. If your Windows for Workgroups logon script contains the commands NET USE and PAUSE, you see a connection to drive Z: for LogonServer\NETLOGON in the Windows for Workgroups logon command prompt window.

To create logon script batch file that will call another batch file, and will be used at Windows NT workstations as well as Windows for Workgroup workstations, write the batch file so it can handle the difference between Windows NT and other clients. The following example batch file could be used as a logon script that calls a batch file from the NETLOGON share.

   if "%OS%" == "Windows_NT" goto NT_OS
   CALL z:\other.bat
   EXIT
   :NT_OS
   CALL other.bat
   EXIT


Additional query words: 2.2c 3.11 3.51 prodnt operating system login
Keywords : nthowto kbnetwork
Version : WinNT:3.51;Windows:3.11,95;MSDOS:2.2c
Platform : winnt


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