|
|
SMSLS.BAT File Converted to KIX ScriptSeptember 26, 2003
To run, just call "smsls.kix" from loginscript. Download the smsls.kix script. << Back to SMS Scripts list.
Below is the entire script:
; Copyright (C) 1994-1999 Microsoft Corporation ; ; Systems Management Server 2.0 ; Copyright (C) 2002 National Aerospace Laboratory NLR (The Netherlands) for the KIX version ; ; This is the original SMSLS.BAT converted to KIX. ; ; 8-jan-2002 1.0 HvD Initial version ; ; ; Exit script if OS is unknown or if Windows Terminal Server if "%SMS_UNSUPPORTED_OS%" <> "" goto END endif if "%WINSTATIONNAME%" <> "" goto END endif if @INWIN = 2 goto OK_TO_PROCEED endif if "%SESSIONNAME%" = "" OR "%SESSIONNAME%" = "Console" goto OK_TO_PROCEED endif ; System is NT, and session name indicates this is a remote session goto END :OK_TO_PROCEED if "%SMS_LOCAL_DIR%" = "" goto SLOWNETUSER endif if exist("%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE") = 0 goto SLOWNETUSER endif shell "%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SLOWNET.EXE @LSERVER\netlogon" if @ERROR = 1 goto END endif if exist("%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE") = 0 goto USER endif shell "%SMS_LOCAL_DIR%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S @LSERVER\netlogon -N -WINDIR=%WINDIR%" goto END :SLOWNETUSER if "%SMS_LOCAL_DIR_USER%" = "" goto SLOWNETTEMP endif if exist("%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE") = 0 goto SLOWNETTEMP endif shell "%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SLOWNET.EXE @LSERVER\netlogon" if @ERROR = 1 goto END endif :USER if "%SMS_LOCAL_DIR_USER%" = "" goto SERVER endif if exist("%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE") = 0 goto SERVER endif shell "%SMS_LOCAL_DIR_USER%\MS\SMS\CORE\BIN\SMSBOOT1.EXE -S @LSERVER\netlogon -N -WINDIR=%WINDIR%" goto END :SLOWNETTEMP if exist("%TEMP%\SLOWNET.EXE") = 0 goto SLOWNETSERVER endif shell "%TEMP%\SLOWNET.EXE @LSERVER\netlogon" if @ERROR = 1 goto END endif :SERVER shell "@LSERVER\netlogon\SMSBOOT1.EXE -S @LSERVER\netlogon -N -WINDIR=%WINDIR%" goto END :SLOWNETSERVER shell "@LSERVER\netlogon\SNBOOT.EXE" if @ERROR = 1 goto END endif shell "@LSERVER\netlogon\SMSBOOT1.EXE -S @LSERVER\netlogon -N -WINDIR=%WINDIR%" :END Disclaimer: We hope that the information in these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by me. We shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.
|
|