tacticalrmm/scripts_wip/Win_RDS_Logoff_Disconnected...

1 line
78 B
PowerShell

quser | Select-String "Disc" | ForEach {logoff ($_.tostring() -split ' +')[2]}