PowerShell, List RDP Sessions

PowerShell, FileSystem Monitoring
11 Maggio 2016
PowerShell, Kill RDP Sessions
30 Maggio 2016
Mostra tutto

PowerShell, List RDP Sessions

A partire da Windows Vista, Microsoft ha resto disponibile l'utility Qwinsta che permette di visualizzare le informazioni sulle sessioni Remote Desktop.
Il post di oggi spiega come creare un semplice wrapper in PowerShell per Qwinsta.
function Get-RDPSessions {
        $ComputerName = "localhost"

    qwinsta /server:$ComputerName |
    ForEach-Object {
        $_.Trim() -replace "s+",","
    } |

Get-RDPSessions -ComputerName "localhost" | ft -AutoSize

List RDP Session(s)


  1. Jeffrey Snover ha detto:

    You should publish this as a script on the PSGallery!
    qwinsta – who is ever going to remember that name?

    Jeffrey Snover[MSFT]

    • Danfossi ha detto:

      I do not think that such a simple script is worthy of being published on PSGallery! 😉
      In addition, I fear that if Microsoft staff doesn’t use more “qwinsta”, there is an easier method that currently escapes me! xD

  2. Demi ha detto:

    Thanks a bunch for sharing this with all people you actually understand what you’re
    speaking approximately! Bookmarked. Kindly also seek advice from my site =).
    We could havve a link exchange arrangement between us!

  3. maillot foot pas cher ha detto:

    Thanks for sharing, this is a fantastic blog.Really thank you! Awesome.

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *