RemoveVirtualDesktop method of the Win32_RDMSVirtualDesktopCollection class

Removes a virtual desktop from the virtual desktop collection.

Syntax

uint32 RemoveVirtualDesktop(
  [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

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