Sends a pause control code to a Windows NT service and verifies that the service has entered a paused state. This method will time out after two minutes.
obj.PauseService (ServiceName String, [ComputerName String]) Where obj is an OpScrUtil.SCManager object.
ServiceName
|
Specifies the name of the service to pause. |
ComputerName
|
Specifies the target computer. This parameter is optional. If not specified or an empty string, the local computer is the target. |
Boolean.
To pause the messenger
service on
the SERVER876
computer, enter:
Set obj = CreateObject("OpScrUtil.SCManager") bOK = obj.PauseService("Messenger", "SERVER876")