Stops the service.
The StopService method stops the service represented by the object derived from CIM_Service.
Syntax
uint32 StopService();
Parameters
This method has no parameters.
Return value
Returns "0" on success, otherwise returns a WMI error code.
Requirements
| Minimum supported client |
None supported |
| Minimum supported server |
Windows Server 2016 |
| Namespace |
Root\HyperVCluster\v2 |
| Header |
|
| MOF |
|
| DLL |
|