ChangeStartMode Method of the Win32_Service Class
The ChangeStartMode WMI class method modifies the start mode of a Win32_Service .
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method .
Syntax
MOF
uint32 ChangeStartMode(
[in] string
);
Parameters
Return Value
Returns one of the values listed in the following table or any other value to indicate an error.
| Return code | Description |
|---|
| Success |
| Not Supported |
| Access Denied |
| Dependent Services Running |
| Invalid Service Control |
| Service Cannot Accept Control |
| Service Not Active |
| Service Request Timeout |
| Unknown Failure |
| Path Not Found |
| Service Already Running |
| Service Database Locked |
| Service Dependency Deleted |
| Service Dependency Failure |
| Service Disabled |
| Service Logon Failure |
| Service Marked For Deletion |
| Service No Thread |
| Status Circular Dependency |
| Status Duplicate Name |
| Status Invalid Name |
| Status Invalid Parameter |
| Status Invalid Service Account |
| Status Service Exists |
| Service Already Paused |