File Name :WSS_Service_Status.bat
@echo off
REM ######################################################################
REM ## This batch file will be run on the Cruise control server to
REM ## check the status of WSS service.
REM ##
REM ######################################################################
setlocal enabledelayedexpansion
call wmic /locale:ms_409 service where (name="wss") get state /value | findstr State=Running > null
if "%errorlevel%"=="0" exit 0
if "%errorlevel%"=="1" exit 614
endlocal
No comments:
Post a Comment
Do not post irrelevant comments, please!