RdvMigrateVmToDifferentHost method of the Win32_RdvhManagement class
Initiates a live migration of a virtual machine to a specified host.
Syntax
uint32 RdvMigrateVmToDifferentHost(
[in] string VmName,
[in] string DestinationHost
);
Parameters
-
VmName [in]
-
Name of the virtual machine to migrate.
-
DestinationHost [in]
-
name of the destination host.
Return value
Returns 0 on success, otherwise returns a WMI error code. Refer to Remote Desktop Services WMI Provider Error Codes for a list of these values.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
None supported |
Minimum supported server |
Windows Server 2012 |
Namespace |
Root\CIMv2\TerminalServices |
MOF |
|
DLL |
|