ScriptLogic.com: Windows Management…Point, Click, Done


Desktop Management

Windows Servers & Security

Other Products




Custom Script: C0002

Overview:

When running Microsoft SMS, you'll want to call the "smsls.bat" file during the logon process. The smsls.bat file is typically located in the scripts directory (NETLOGON share).

Note: The following examples represent how to launch a batch or executable file using custom scripting. With ScriptLogic and ScriptLogic Professional, this can usually be accomplished using the Application Launcher Tab in the ScriptLogic Manager.
 

Example 1 - Add these line(s) to Custom Script 2:

; Launch SMS data collector [Begin]
$cmdline="%COMSPEC% /E:1024 /C $NetLogon\SMSLS.BAT"
SHELL $cmdline
; Launch SMS data collector [End]
  

Example 2 - Add these line(s) to Custom Script 2:

; Launch SMS data collector [Begin]
if $ConnType='LAN' ; * only execute for LAN-attached clients *
  $cmdline="%COMSPEC% /E:1024 /C $NetLogon\SMSLS.BAT"
  SHELL $cmdline
endif
; Launch SMS data collector [End]

Created: 30 January, 1999
Last Revised: 22 July, 2004