locked
Powershell cmdlet to get RDP Disconnected session only RRS feed

  • Question

  • Hi,

    Please help on how to craft a powershell cmdlet to get RDP Disconnected session only.

    Thanks.

    Friday, May 12, 2017 1:54 PM

Answers

  • Then just parse the results:

    ((qwinsta /server:SERVERNAME) -split "\n") | ? {$_ -like "*Disc*"}


    Friday, May 12, 2017 2:00 PM

All replies

  • An old way to start:

    qwinsta /server:SERVERNAME

    Friday, May 12, 2017 1:59 PM
  • Then just parse the results:

    ((qwinsta /server:SERVERNAME) -split "\n") | ? {$_ -like "*Disc*"}


    Friday, May 12, 2017 2:00 PM