Microsoft Operations Manager

SCManager Object (Deprecated)

The SCManagerobject controls services on the computer. This object has been deprecated and should not be used when creating new scripts. It is included only to support existing scripts. For new scripts, see Using Operating System APIs in Scripts.

Methods

Name Description

BounceService

Starts and stops the specified Microsoft Windows NT service and queries the service status to ensure that the service has started.

ContinueService

Sends a continue control code to a Windows NT service and verifies that the service has entered a running state.

GetError

Gets the most recent error description for the SCManagerobject.

GetServiceConfig

Gets the configuration parameters of the specified service.

GetServiceStatus

Gets the status of the specified service.

PauseService

Sends a pause control code to a Windows NT service and verifies that the service has entered a paused state.

StartService

Sends a service start control request to the specified Windows NT service and queries the service status to ensure that the service has started.

StopService

Sends a service stop control request to the specified Windows NT service and queries the service status to ensure that the service has stopped.

Requirements

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.