StartService method of the CIM_Service class (Hyper-V management)

Places the service in the started state.

Note

The semantics of this method overlap with the RequestStateChange method that is inherited from CIM_EnabledLogicalElement. This method is maintained because it has been widely implemented, and its simple "start" semantics are convenient to use.

Syntax

uint32 StartService();

Parameters

This method has no parameters.

Return value

Returns a 0 on success; otherwise, returns an error.

Requirements

Requirement Value
Minimum supported client
Windows 8.1
Minimum supported server
Windows Server 2012 R2
Namespace
Root\virtualization\v2
MOF
WindowsVirtualization.V2.mof
DLL
Vmms.exe

See also

CIM_Service