I am trying to display the user assigned to a desktop. Horizon View 7.1, PowerCLI 6.5. When I display the desktop details:
$hvDesktops | fl *
Name : XX-YY-ZZZZ
DnsName : xx-yy-zzzz.xyz.com
User : VMware.Hv.UserOrGroupId
AccessGroup : VMware.Hv.AccessGroupId
Desktop : VMware.Hv.DesktopId
Session : VMware.Hv.SessionId
BasicState : CONNECTED
Type : MANAGED_VIRTUAL_MACHINE
OperatingSystem : Windows 7
AgentVersion : 7.1.0
AgentBuildNumber : 5170901
RemoteExperienceAgentBuildNumber : 29075
I'm not sure what the contents of the Id field means and how I would go about converting this to an English name or AD account. (I have changed a few digits in the results in case they are sensitive)
Afaik this is an internal identifier, and I'm not sure if there is a documented method to analyse what is in the ID.
The API documentation for the DesktopInfo object only seems to mention that it is a "Client reference to a specific desktop instance"
But no further explanation on the actual value in there.