Let’s say I have a Remote Desktop Services environment with two connection brokers and four Remote Desktop Session Hosts.
I want to know which of the four session hosts that user jdoe is logged on to.
How can I retrieve this information using Powershell?