Directory Services |
The property methods of the IADsService interface read and write the properties described in this topic. For more information, see Interface Property Methods.
Property | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Dependencies
[Visual Basic] [C++] |
Array of BSTR names of services or load groups that must be loaded in order for this service to load. The syntax for the entry is "Service:" followed by the service name or "Group:" followed by the load group name. | ||||||||||||
DisplayName
[Visual Basic] [C++] |
The friendly name of the service. | ||||||||||||
ErrorControl
[Visual Basic] [C++] |
The action to be performed if this service fails on
startup. The following are valid values for this property.
|
||||||||||||
HostComputer
[Visual Basic] [C++] |
The ADsPath string of the host of this service. | ||||||||||||
LoadOrderGroup
[Visual Basic] [C++] |
Name of the load order group that this service is a member of. | ||||||||||||
Path
[Visual Basic] [C++] |
Path and filename to the executable of this service. | ||||||||||||
ServiceAccountName
[Visual Basic] [C++] |
Name of the account that this service uses to authenticate itself on startup. | ||||||||||||
ServiceAccountPath
[Visual Basic] [C++] |
Path of the account specified by the ServiceAccountPath property. | ||||||||||||
ServiceType
[Visual Basic] [C++] |
The description of how a service manifests itself
on the host computer. This property can be zero or a combinaiton of
one or more of the following values.
|
||||||||||||
StartType
[Visual Basic] [C++] |
Determines how the service should be started. The
following are valid values for this property.
|
||||||||||||
StartupParameters
[Visual Basic] [C++] |
Parameters passed to the service at startup. | ||||||||||||
Version
[Visual Basic] [C++] |
Version of the service. |
The following code example shows how to list all the available system services running on the host computer, "myMachine", together with the location to find the executables of the services.
Dim cp As IADsComputer On Error GoTo Cleanup Set cp = GetObject("WinNT://myMachine,computer") If (IsEmpty(cp) = False) Then cp.Filter = Array("Service") For Each service In cp MsgBox service.Name & " @" & service.path Next End if Cleanup: If (Err.Number<>0) Then MsgBox("An error has occurred. " & Err.Number) End If Set cp = Nothing
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Iads.h.