Microsoft Operations Manager

GetServiceConfig Method

The GetServiceConfigmethod gets the configuration parameters of the specified service.

SCManager.GetServiceConfig(ServiceName String, Request String,
OutInfo Variant, [ComputerName Variant])


Specifies the name of the service to retrieve configuration information.

Specifies which configuration item to retrieve. Possible values are Type, Start Type, Error Control, Binary Path, Dependencies, Display Name, Load Order Group, and Start Name.

Returns the requested configuration item.
Specifies the name of the target computer. This parameter is optional. If the target computer is not specified or the parameter is an empty string, the local computer is the target.

Return Value



The following example shows how to get the binary path for the messenger service on the local computer.

Dim objSCManager, blnOK, vntPath

Set objSCManager = CreateObject("OpScrUtil.SCManager")

blnOK = objSCManager.GetServiceConfig("messenger", "binary path",
vntPath, "")

Set objSCManager = Nothing


Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1

See Also

SCManager Object

Did you find this information useful? Please send your suggestions and comments about the documentation to