Examples of SMS 2003 logon scripts.
From: Steve Adams (steven.adams_at_nospam.com)
Date: 08/09/04
- Next message: ipsec23: "Office Update Commnad Line syntax!"
- Previous message: Kim Oppalfens: "Re: SMS 2003 Admin Console and XP SP2?"
- Next in thread: Arun: "RE: Examples of SMS 2003 logon scripts."
- Reply: Arun: "RE: Examples of SMS 2003 logon scripts."
- Messages sorted by: [ date ] [ thread ]
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
- Next message: ipsec23: "Office Update Commnad Line syntax!"
- Previous message: Kim Oppalfens: "Re: SMS 2003 Admin Console and XP SP2?"
- Next in thread: Arun: "RE: Examples of SMS 2003 logon scripts."
- Reply: Arun: "RE: Examples of SMS 2003 logon scripts."
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|