SetUserAssignment method of the Win32_RDMSVirtualDesktop class
Assigns a virtual desktop to a user.
Syntax
uint32 SetUserAssignment(
[in] string UserName,
[in] string UserDomain
);
Parameters
-
UserName [in]
-
The username of the user.
-
UserDomain [in]
-
The domain name of the user.
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 |
|