Microsoft Operations Manager |
The BounceServicemethod starts and stops the specified Windows NT service and queries the service status to ensure that the service has started.
[VBScript]
SCManager.BounceService(ServiceName Variant, [ComputerName
Variant], [Arguments Variant])
Boolean
The BounceServicemethod times out after two minutes.
The following example shows how to bounce the messenger service on the local computer.
[VBScript]
Dim objSCManager, blnOK
Set objSCManager = CreateObject("OpScrUtil.SCManager")
blnOK = objSCManager.BounceService("Messenger", "")
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.