tacticalrmm/scripts_wip/Win_RDS_Logoff_Disconnected...

1 line
78 B
PowerShell
Raw Normal View History

2021-04-27 17:11:30 +00:00
quser | Select-String "Disc" | ForEach {logoff ($_.tostring() -split ' +')[2]}