GetVirtualDesktopAssignedToUser method of the Win32_RDMSVirtualDesktop class
Retrieves the virtual desktop that is assigned to the specified user.
Syntax
uint32 GetVirtualDesktopAssignedToUser(
[in] string CollectionAlias,
[in] string UserName,
[in] string UserDomain,
[out] string VMName
);
Parameters
-
CollectionAlias [in]
-
The alias of the virtual desktop collection that contain the virtual desktop.
-
UserName [in]
-
The username of the user.
-
UserDomain [in]
-
The domain name of the user.
-
VMName [out]
-
Receives the virtual machine name of 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 |
|
DLL |
|