GetUserAssignment method of the Win32_RDMSVirtualDesktop class
Retrieves the username and domain name of the user that is assigned to the virtual desktop.
Syntax
uint32 GetUserAssignment(
[out] string UserName,
[out] string UserDomain
);
Parameters
-
UserName [out]
-
Receives the username.
-
UserDomain [out]
-
Receives the domain name.
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 |
|