Microsoft Operations Manager

GetServiceConfig Method

The GetServiceConfigmethod gets the configuration parameters of the specified service.

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

Parameters

ServiceName
Specifies the name of the service to retrieve configuration information.
Request

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.

OutInfo
Returns the requested configuration item.
ComputerName
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

Boolean

Examples

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

[VBScript] 
Dim objSCManager, blnOK, vntPath

Set objSCManager = CreateObject("OpScrUtil.SCManager")

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

Set objSCManager = Nothing

Requirements

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 momsdk@microsoft.com.