Examples of SMS 2003 logon scripts.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Steve Adams (steven.adams_at_nospam.com)
Date: 08/09/04


Date: Tue, 10 Aug 2004 11:16:17 +1200

Hi I would like to get some examples of any sms logon scripts that anyone
has created for thier sms 2003.

I will inculde what I currently have written.

start of script
----------------------------------------------------------------------------
----------
@ECHO OFF
REM ======================================================================
REM Check if SMS Client is already present (Core File Test).
REM ======================================================================

 REM Check for advanced client (Win 2000 and Win XP)
  if exist "%windir%\system32\ccm\ccmexec.exe" goto :gotclient

 REM Check for legecy client (Win 98 and NT 4)
  if exist "%windir%\ms\sms\core\bin\clicore.exe" goto :gotclient

REM ======================================================================
REM Verify client version to determine which command to use.
REM ======================================================================

REM Win9x
REM ----------------------------------------------------------------------
 VER |find /i "Windows 98" >NUL
 IF NOT ERRORLEVEL 1 GOTO :W98

REM NT/2000/XP
REM ----------------------------------------------------------------------
 VER | find "XP" > nul
 IF %errorlevel% EQU 0 GOTO :XP

 VER | find "2000" > nul
 IF %errorlevel% EQU 0 GOTO :2000

 VER | find "NT" > nul
 IF %errorlevel% EQU 0 GOTO :NT

REM Unsupported Operating System
REM ----------------------------------------------------------------------
 ECHO Unsupported Operating System
 GOTO :END

REM ======================================================================
REM Run selected command
REM ======================================================================

REM XP/2K Install
REM ----------------------------------------------------------------------
 :XP
 :2000
 ECHO Installing SMS client (Advanced)
 \\ccosms03\smsclient\i386\capinst /advcli
 goto :END

REM Windows 98 Install
REM ----------------------------------------------------------------------
 :W98
 :NT
 ECHO Installing SMS client (Legecy)
 \\ccosms03\smsclient\i386\capinst
 goto :END

REM Client Already Installed
REM ----------------------------------------------------------------------
:gotclient
 ECHO SMS Client Present

REM End of File
REM ----------------------------------------------------------------------
:END



Relevant Pages

  • RE: Examples of SMS 2003 logon scripts.
    ... > REM Check if SMS Client is already present. ... > ECHO Installing SMS client ... > REM Windows 98 Install ...
    (microsoft.public.sms.admin)
  • Re: SP3 install
    ... these states that the online documentation has been updated to take SP3 into ... I am not sure about this as the web page doesn't mention SP3 ata ... SMS SP3, but here it is... ... clients should get the latest sms client version, ...
    (microsoft.public.sms.admin)
  • Re: duplicated machine records in collections
    ... brand new SMS client, ... the hardware ID will remain the same (assuming the ... previous record as obsolete. ...
    (microsoft.public.sms.inventory)
  • Re: USB Device Inventory
    ... You just send the new sms client package like ... Here are some new features detected by the inventory with SP3 ... USB devices that are plugged in to a system when the inventory is ...
    (microsoft.public.sms.inventory)
  • Re: System Event Notification Service (SENS)
    ... I was not suggesting adding SMS client to your runtime. ... Instead just install the SMS QFE on your XPe dev machine. ... Then you can use new SENS Hotfix. ...
    (microsoft.public.windowsxp.embedded)