GetServiceConfig Method

Gets the configuration parameters of the specified service.


obj.GetServiceConfig(ServiceName String, Request String, OutInfo Variant, [ComputerName String])
Where obj is an OpScrUtil.SCManager object.


ServiceName Specifies the name of the service to retrieve configuration info.
Request Specifies which configuration item to retrieve. The following table lists possible values for the Request parameter: type
start type
error control
binary path
display name
load order group
start name
OutInfo Returns the requested configuration item.
ComputerName Specifies the name of the target computer. This parameter is optional. If not specified or an empty string, the local computer is the target.

Return Type



To get the binary path for the messenger service on the local computer, enter:

Set obj = CreateObject("OpScrUtil.SCManager")
bOK = obj.GetServiceConfig("messenger", "binary path", vPath, "")