IADsServiceOperations Interface

Inherited from

IDispatch

IUnknown

IADs

Applies to Objects

Service

This interface is exposed from the Service object. It can be used to perform operations like starting the service, stopping the service, and so on. It can also be used to set the password for the account that will be used by the service manager when authenticating the account for starting the service.

Property/Method

Description

Continue

Resumes a service

Pause

Pauses a service

SetPassword

Sets the password for the account that will be used by the service manager when creating the security context for this service. This account is identified by the ServiceAccountName property

Start

Starts a service published and currently available on the network

Status

Gets the status of the service

Stop

Stops a currently active service on the network

Example

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