Service\_GetState
Description
Section titled “Description”Gets state of specified service
Syntax
Section titled “Syntax”Service_GetState(sServiceName) As Boolean
Parameters
Section titled “Parameters”sServiceName (String)
Name of service
Return value
Section titled “Return value”Result will be stored in gsValue. Service Controller Status constants
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Service_GetState("Service")If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)Related functions
Section titled “Related functions”Service_Exist Service_SetLogonInformations