1 Reply Latest reply on Aug 8, 2017 11:19 PM by LucD

    Horizon View - Convert User ID to English Username

    CraigH1 Novice

      Hello.

      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[0] | 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

      RemoteExperienceAgentVersion     :

      RemoteExperienceAgentBuildNumber : 29075

       

      $hvDesktops[0].User

      ---

      Id

      --

      UserOrGroup/Uy0xLTUtMjEtMTIyNTE4NzgzNy0zDCD5OTM5NOk5PTIzOTEzNDI1NDktMTIyNTI

       

       

      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)