DaveMusante
MIS
The saga continues, or at least it seems. We now know the SMSLS.BAT will run on the workstation but it bombs out at one point and I am not sure what it means. We are using the stock smsls.bat and I added some statements to it so we could see on a test machine what it does. I used a number system to count through from 1-23 and added a pause so it was easy to follow and it dies out after number 21. Any help with what this means.
@echo off
REM Copyright (C) 1994-1999 Microsoft Corporation
REM
REM echo Systems Management Server 2.0
REM Exit script if OS is unknown or if Windows Terminal Server
Echo 1
Pause
if %SMS_UNSUPPORTED_OS%. == TRUE. goto END
Echo 2
Pause
if not %WINSTATIONNAME%. == . goto END
Echo 3
Pause
if not .%OS%. == .Windows_NT. goto OK_TO_PROCEED
Echo 4
Pause
REM the OS is Windows NT, check for Processor Architecture
Echo 5
Pause
if .%PROCESSOR_ARCHITECTURE%. == .x86. goto CHECK_REMOTE_SESSION
Echo 6
Pause
if .%PROCESSOR_ARCHITECTURE%. == .ALPHA. goto CHECK_REMOTE_SESSION
Echo 7
Pause
REM Unsupported processor e.g. IA64, AMD64, MIPS, PPC
goto END
:CHECK_REMOTE_SESSION
if .%SESSIONNAME%. == .. goto OK_TO_PROCEED
echo 8
Pause
if /i .%SESSIONNAME%. == .Console. goto OK_TO_PROCEED
Echo 9
Pause
REM System is NT, and session name indicates this is a remote session
goto END
:OK_TO_PROCEED
Echo 10
Pause
Echo 11
Pause
if %SMS_LOCAL_DIR%. == . goto SLOWNETUSER
Echo 12
Pause
if not exist %SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE goto SLOWNETUSER
Echo 13
Pause
%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE %0
if errorlevel 1 goto END
echo 14
Pause
if not exist %SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE goto USER
%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END
:SLOWNETUSER
Echo 15
Pause
if %SMS_LOCAL_DIR_USER%. == . goto SLOWNETTEMP
Echo 16
Pause
if not exist %SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE goto SLOWNETTEMP
Echo 17
Pause
%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE %0
if errorlevel 1 goto END
:USER
Echo 18
Pause
if %SMS_LOCAL_DIR_USER%. == . goto SERVER
Echo 19
Pause
if not exist %SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE goto SERVER
%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END
:SLOWNETTEMP
Echo 20
Pause
if not exist %TEMP%\SLOWNET.EXE goto SLOWNETSERVER
Echo 21
Pause
%TEMP%\SLOWNET.EXE %0
if errorlevel 1 goto END
:SERVER
Echo 22
Pause
%0\..\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END
:SLOWNETSERVER
Echo 23
Pause
%0\..\SNBOOT.EXE
if errorlevel 1 goto END
%0\..\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
:END
@echo off
REM Copyright (C) 1994-1999 Microsoft Corporation
REM
REM echo Systems Management Server 2.0
REM Exit script if OS is unknown or if Windows Terminal Server
Echo 1
Pause
if %SMS_UNSUPPORTED_OS%. == TRUE. goto END
Echo 2
Pause
if not %WINSTATIONNAME%. == . goto END
Echo 3
Pause
if not .%OS%. == .Windows_NT. goto OK_TO_PROCEED
Echo 4
Pause
REM the OS is Windows NT, check for Processor Architecture
Echo 5
Pause
if .%PROCESSOR_ARCHITECTURE%. == .x86. goto CHECK_REMOTE_SESSION
Echo 6
Pause
if .%PROCESSOR_ARCHITECTURE%. == .ALPHA. goto CHECK_REMOTE_SESSION
Echo 7
Pause
REM Unsupported processor e.g. IA64, AMD64, MIPS, PPC
goto END
:CHECK_REMOTE_SESSION
if .%SESSIONNAME%. == .. goto OK_TO_PROCEED
echo 8
Pause
if /i .%SESSIONNAME%. == .Console. goto OK_TO_PROCEED
Echo 9
Pause
REM System is NT, and session name indicates this is a remote session
goto END
:OK_TO_PROCEED
Echo 10
Pause
Echo 11
Pause
if %SMS_LOCAL_DIR%. == . goto SLOWNETUSER
Echo 12
Pause
if not exist %SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE goto SLOWNETUSER
Echo 13
Pause
%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE %0
if errorlevel 1 goto END
echo 14
Pause
if not exist %SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE goto USER
%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END
:SLOWNETUSER
Echo 15
Pause
if %SMS_LOCAL_DIR_USER%. == . goto SLOWNETTEMP
Echo 16
Pause
if not exist %SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE goto SLOWNETTEMP
Echo 17
Pause
%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE %0
if errorlevel 1 goto END
:USER
Echo 18
Pause
if %SMS_LOCAL_DIR_USER%. == . goto SERVER
Echo 19
Pause
if not exist %SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE goto SERVER
%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END
:SLOWNETTEMP
Echo 20
Pause
if not exist %TEMP%\SLOWNET.EXE goto SLOWNETSERVER
Echo 21
Pause
%TEMP%\SLOWNET.EXE %0
if errorlevel 1 goto END
:SERVER
Echo 22
Pause
%0\..\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
goto END
:SLOWNETSERVER
Echo 23
Pause
%0\..\SNBOOT.EXE
if errorlevel 1 goto END
%0\..\SMSBOOT1.EXE -S %0 -N -WINDIR=%WINDIR%
:END