Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Upgrades a virtual machine.
Syntax
uint32 UpgradeSystemVersion(
  [in]  CIM_ComputerSystem REF ComputerSystem,
  [in]  string                 UpgradeSettingData,
  [out] CIM_ConcreteJob    REF Job
);
Parameters
- 
ComputerSystem [in] 
- 
A reference to the CIM_ComputerSystem that represents the virtual machine. 
- 
UpgradeSettingData [in] 
- 
An embedded instance of CIM_SettingData that represents the upgrade settings to apply to the virtual machine. 
- 
Job [out] 
- 
A reference to an optional job for the operation if the operation is run asynchronously. 
Return value
The possible return values are:
- 
Completed with No Error (0) 
- 
Not Supported (1) 
- 
Failed (2) 
- 
Timeout (3) 
- 
Invalid Parameter (4) 
- 
Invalid State (5) 
- 
Incompatible Parameters (6) 
- 
DMTF Reserved (7 4095) 
- 
Method Parameters Checked - Job Started (4096) 
- 
Method Reserved (4097 32767) 
- 
Vendor Specific (32768 65535) 
Requirements
| Minimum supported client | None supported | 
| Minimum supported server | Windows Server 2016 | 
| Namespace | Root\HyperVCluster\v2 | 
| MOF | 
 | 
| DLL | 
 |