Siebel Service Window Script - Simple

Following Script will start the windows service if the status is stopped.


================================================================

for /F "tokens=3 delims=: " %%H in ('sc query "Windows_Service Name" ^| findstr "        STATE"') do (
  if /I "%%H" NEQ "RUNNING" (
   REM Put your code you want to execute here
   REM For example, the following line
   net start "Windows_Service Name"
  )
)

Comments:

Please change the name of the service as per your services details.
Refer the Image here for Name of the Service : 



















No comments:

Manage Inactive session in Oracle 23AI Database.

# CONNECT WITH PDB DATABASE(ORACLE 23AI) [oracle@prd-23ai ~]$ sqlplus / as sysdba  SQL*Plus: Release 23.0.0.0.0 - for Oracle Cloud and Engin...