remote computing

Use PowerShell to List RDS Sessions

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.


        
                                        
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish