AddVirtualDesktop method of the Win32_RDMSVirtualDesktopCollection class

Adds a virtual desktop to the virtual desktop collection.

Syntax

uint32 AddVirtualDesktop(
  [in] string VMName
);

Parameters

VMName [in]

The name of the virtual machine that hosts the virtual desktop.

Return value

Returns 0 on success, otherwise returns a WMI error code.

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\CIMv2\rdms
MOF
RDManagement.mof
DLL
RDMS.dll

See also

Win32_RDMSVirtualDesktopCollection