Inherited from
Applies to Objects
This interface is exposed from the Service object and is the primary interface for the object. This interface is useful for viewing Service properties like Display Name, Start Type, and so on. You can also use this interface to change the account name of the service.
Property/Method |
Description |
Gets and sets the array of names of services or load groups that must be loaded for this service to load |
|
Gets and sets the friendly display name of the service |
|
Gets and sets the action to be taken if the service fails on startup |
|
Gets the ADsPath of the host of the service |
|
Gets and sets the name of the load order group that the service is a member of. You should specify an empty string if the service does not belong to a group |
|
Gets and sets the path and file name of the executable of the service |
|
Gets and sets the name of the account that the service uses to authenticate itself on startup |
|
Gets and sets the ADsPath of the user object for the account that the service uses to authenticate itself on startup |
|
Gets and sets the description of how a service manifests itself on the host computer |
|
Gets and sets the value that indicates how (or when) the service starts |
|
Gets and sets parameters passed to the service on startup |
|
Gets and sets the version of the service |
Example
Dim SerObj as IADsService
Dim SerOpr as IADsServiceOperations
'Get the interface
Set SerObj = GetObject ("NTDS://MSFT/MOON/Messenger")
'Print DisplayName property
Debug.Print SerObj.DisplayName
'Get the operations interface
Set SerOpr = GetObject ("NTDS://MSFT/MOON/Messenger")
'Stop the service
SerOpr.Stop