hass-workstation-service icon indicating copy to clipboard operation
hass-workstation-service copied to clipboard

Feature Request: Powershell

Open rEs-84 opened this issue 4 years ago • 3 comments

Ability to return a PowerShell value (likely more useful than WMI), either by a single one liner / multiple lines or a execute ps1 file.

Personally i'd like the ability to find out if an active RDP session is open, instead of console session. Which i'd use inconjunction with the SessionState sensor

Various ways of finding out via running built in applications, but without retrieving their value its tricky. For example the windows variable has it as console or rdp (echo %sessionname%), qwinsta shows it, as does query user

rEs-84 avatar Jan 29 '21 08:01 rEs-84

Thanks for creating an issue! This seems related to #29 but more focused on Powershell.

sleevezipper avatar Jan 29 '21 10:01 sleevezipper

Ah didn’t spot that one, looked around a few based on topics Etc.

I just thought powershell would be more usefully then wmi directly, as it can do more modern wmi queries easily too.

rEs-84 avatar Jan 29 '21 12:01 rEs-84

I could definitely see the need for this. If we could run a PS command to grab data, then several of the requests would be addressed. For instance, showing the IP, would be easy.

ImaBadCoder avatar Aug 19 '21 13:08 ImaBadCoder