IT Management Daily
Storage Daily
Security Daily
FREE NEWSLETTERS
search
 

follow us on Twitter


internet.commerce
Be a Commerce Partner















internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers




Products
 LinqConnect Express (LinqConnect Express)
 LinqConnect 2.00 (Devart)
 EMS SQL Manager for MySQL (EMS Database Management Solutions, Inc.)
 EMS SQL Management Studio for MySQL (EMS Database Management Solutions, Inc.)
 Database Designer for PostgreSQL (MicroOLAP Technologies LTD)
 ESBFinCalc Pro - Financial Calculator (ESB Consultancy)
» Enterprise IT Planet » Resources » SMS Scripts

SMSLS.BAT File Converted to KIX Script

September 26, 2003

Email Print Digg This Add to del.icio.us
Here's a script from Hugo van Dort that has been designed for KIX to allow you to execute batch files. Since companies that use KIX as logonscript are unable to execute batch files, Hugu has converted the original SMSLS.BAT file to run under KIX.

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.

Email Print Digg This Add to del.icio.us

SMS Scripts Archives