Terminal server - Read client device names

lars.geiss
lars.geiss Member Posts: 1

I have a terminal server here.

Unfortunately, I can only see the user names under "User Activity"...

Does anyone have an idea for a Powershell script with which you can not only read out the users, but also the associated client device names? And that in a table?!?!?

#State - Username - Last User Activity - Client-Name
#Active - Susanne - 8 mins ago - Thin17-Ebsge
#Active - Brian - 9 mins ago - Thin18-AgE