RequestStateChange method of the Msvm_VirtualSystemManagementService class
Requests a state change for the element.
Syntax
uint32 RequestStateChange(
[in] uint16 RequestedState,
[out] CIM_ConcreteJob REF Job,
[in] datetime TimeoutPeriod
);
Parameters
-
RequestedState [in]
-
The requested state for the element.
The possible value are:
-
Enabled (2)
-
Disabled (3)
-
Shut Down (4)
-
Offline (6)
-
Test (7)
-
Defer (8)
-
Quiesce (9)
-
Reboot (10)
-
Reset (11)
-
DMTF Reserved
- 12 32767
-
Vendor Reserved
- 32768 65535
Job [out]
A reference to an optional job for the operation if the operation is run asynchronously.
TimeoutPeriod [in]
A timeout period that specifies the maximum amount of time that the client expects the sate transition to take. A value of "0" or a NULL parameter indicates that the client has no time requirements for the transition.
Return value
The possible return values are:
-
Completed with No Error (0)
-
Not supported (1)
Requirements
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2016 |
Namespace |
Root\HyperVCluster\v2 |
MOF |
|
DLL |
|