docs

Home All functions Categories

vuServiceStatus(Server, Service)

vuServiceStatus(*CSTRING,*CSTRING), Long

Description

Returns the status of a Windows service on a specified client or server. Can also be used on the local system when no server name is provided.

Parameters

Parameter Data Type Description
Server CSTRING(128) The name of the server or client PC. Leave blank ('') to reference the local PC. Case sensitive.
Service CSTRING(128) The name of the service to check. Not case sensitive.

Returns

A LONG value indicating the status of the service:

Example

sServerName  = 'Bill-PC'
sServiceName = 'Print Spooler'

IF vuServiceStatus(sServerName, sServiceName) = 6
  MESSAGE('The print spooler service is running on ' & sServerName)
END

Notes

Home All functions Categories