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

Minimum supported client

None supported

Minimum supported server

Windows Server 2012

Namespace

Root\CIMv2\rdms

MOF

RDManagement.mof

DLL

RDMS.dll

See also

Win32_RDMSVirtualDesktop

 

 

Show: