Service\_Exist
Description
Section titled “Description”Checks if specified service exists
Syntax
Section titled “Syntax”Service_Exist(sServiceName, bMustExist) As Boolean
Parameters
Section titled “Parameters”sServiceName (String)
Name of service
bMustExist (Boolean)
Service must exist
Example
Section titled “Example”VBScript
If bStatus Then bStatus = Service_Exist("ServiceName", False)If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)Related functions
Section titled “Related functions”Service_GetState Service_SetLogonInformations