REM Copyright (C) 1994-1995 Microsoft Corporation
REM
REM This file is the Systems Management Server (SMS) logon script
REM include file for NetWare workstations.
REM It installs the SMS client components and collects hardware
REM and software inventory data.

write ""
write "Microsoft Systems Management Server (SMS)"
write ""

REM This file contains the SMS login script for NetWare,
REM and will be included from the system login script.

if <SMSLS> == "" goto START
set SMS_VERBOSE="/v"
write "Executing SMS logon script for netware."
goto START


START:

REM If operating system is Windows NT then exit.
if <OS> = "Windows_NT"  GOTO NT

REM  Determine the DOS version and exit if Chicago.
#%<SMS_LOGON>\dosver
set SMS_ERR=ERROR_LEVEL

REM Check for a slow network connection to the server and possibly exit.
REM If not, spawn the executable files for CLI_DOS and INVDOS located on
REM this server.

#%<SMS_LOGON>\netspeed
set SMS_ERR=ERROR_LEVEL

if <sms_err> < "1" then GOTO NET_DOS

if <sms_err> = "2" then begin
    #%<SMS_LOGON>\x86.bin\NLSMSG16 6 /C YN /T Y,30 /M "Slow network detected. Continue"
    set SMS_ERR=ERROR_LEVEL
    if <sms_err> < "2" then GOTO NET_DOS
end

goto END

NET_DOS:
#%<SMS_LOGON>\x86.bin\CLI_DOS /p:%<SMS_LOGON>\   %<SMS_VERBOSE>
#%<SMS_LOGON>\x86.bin\INVDOS /i /l:%<SMS_LOGON>\ %<SMS_VERBOSE>
GOTO END

NT:
#%<SMS_LOGON>\x86.bin\NLSMSG16 11 /M "This version of SMS does not support Windows NT workstations"
#%<SMS_LOGON>\x86.bin\NLSMSG16 12 /M "that are clients to a Novell NetWare server."
GOTO END

END:
#%<SMS_LOGON>\clrlevel
set SMS_ERR=
set SMS_VERBOSE=
