Nathan Blasac
@nblasac
Manel Rodero In my case I use the awesome module runasuser from Kelvin Tegelaar - MVP. You can find an example in my systray tool About my device. A service is executed in SYSTEM and display a tray app in user context: systanddeploy.com/2021/03/about-…
Adam Juelich This command might be an option (I stole with pride from Roger Zander 's Client Center): (quser) | ? { !$_.contains('USERNAME') } | % { logoff $_.substring(43,2).Trim() }