Q: How can I use PowerShell to check all my Remote Desktop Services sessions?
A: If you want to use PowerShell instead of qwinsta.exe to list your Remote Desktop Services (RDS) sessions, you can do so as follows:
import-module remotedesktopservices Get-RDUserSession
Using this method provides the benefit of keeping the sessions as objects within PowerShell. The following figure shows an example.