Microsoft Operations Manager |
The GetServiceConfigmethod gets the configuration parameters of the specified service.
[VBScript]
SCManager.GetServiceConfig(ServiceName String, Request String,
OutInfo Variant, [ComputerName Variant])
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.
Boolean
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
Windows NT/2000: Requires Windows 2000 or later
Version: Requires MOM 1.0 SP1
Did you find this information useful? Please send your suggestions and comments about the documentation to momsdk@microsoft.com.