Skip to content

Service_GetState

Gets state of specified service

Service_GetState(sServiceName) As Boolean

Name of service

Result will be stored in gsValue. Service Controller Status constants

If bStatus Then bStatus = Service_GetState("Service")
If bStatus Then bStatus = Job_WriteLog("Custom", "gsValue: " & gsValue, bStatus, True)

Scripting Guidelines

Service_Exist Service_SetLogonInformations Constants Package Property Variables