Skip to content

Service\_Exist

Checks if specified service exists

Service_Exist(sServiceName, bMustExist) As Boolean

sServiceName (String)

Name of service

bMustExist (Boolean)

Service must exist

VBScript

If bStatus Then bStatus = Service_Exist("ServiceName", False)
If bStatus Then bStatus = Job_WriteLog("Custom", "gbValue: " & gbValue, bStatus, True)

Scripting Guidelines

Service_GetState Service_SetLogonInformations