lazywinadmin / LazyTS

PowerShell Script (GUI) to manage Terminal Sessions
http://lazywinadmin.com
MIT License
105 stars 27 forks source link

Exception calling "GetSessions" with "0" argument(s): "No more data is available" #14

Open thefreakquency opened 4 years ago

thefreakquency commented 4 years ago

When getting sessions on a Windows 10 machine, when nobody is signed it I get this error: [2020-04-01 10:23:44] HOSTNAME_HERE Get-TSSession Loading Error: Exception calling "GetSessions" with "0" argument(s): "No more data is available" [2020-04-01 10:23:44] HOSTNAME_HERE Unknown Error Last Error: Exception calling "GetSessions" with "0" argument(s): "No more data is available"

It would be more intuitive if it would return a blank list or an indication that the get-TSsession was succesfull but empty.

Also, it would be nice to clear the current session list when clicking on the Sessions button. If the Get-TSsession is not successful, the previous list is still showing.

LazyTS1

This tool is really great, merci beaucoup! :)