IADsService Interface

Inherited from

IDispatch

IUnknown

IADs

Applies to Objects

Service

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

Dependencies

Gets and sets the array of names of services or load groups that must be loaded for this service to load

DisplayName

Gets and sets the friendly display name of the service

ErrorControl

Gets and sets the action to be taken if the service fails on startup

HostComputer

Gets the ADsPath of the host of the service

LoadOrderGroup

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

Path

Gets and sets the path and file name of the executable of the service

ServiceAccountName

Gets and sets the name of the account that the service uses to authenticate itself on startup

ServiceAccountPath

Gets and sets the ADsPath of the user object for the account that the service uses to authenticate itself on startup

ServiceType

Gets and sets the description of how a service manifests itself on the host computer

StartType

Gets and sets the value that indicates how (or when) the service starts

StartupParameters

Gets and sets parameters passed to the service on startup

Version

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

500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.