IADsServiceOperations Property: Status

Property Name
Status

Property Type
Long

Description
This property gets the status of the service. The service status can have the following values:

Value

Description

Stopped

(SERVICE_STOPPED = 1)

The service is not running

Start Pending

(SERVICE_START_PENDING = 2)

The service is starting

Stop Pending

(SERVICE_STOP_PENDING = 3)

The service is stopping

Running

(SERVICE_RUNNING = 4)

The service is running

Continue Pending

(SERVICE_CONTINUE_PENDING = 5)

The service is resuming after being paused

Pause Pending

(SERVICE_PAUSE_PENDING = 6)

The service pause is pending

Paused

(SERVICE_PAUSED = 7)

The service is paused

Failed

The service failed to complete the last requested action

Unknown

The status of the service could not be determined, but an error did not occur

Example

Dim seropr As IADsServiceOperations
'Get the service operations object
Set seropr = GetObject("NTDS://MSFT/MOON/Messenger")
'Get the status of the service.
Debug.Print seropr.Status

 

See Also