How to logoff all disconected users from a machine

Configurare noua (How To)

Situatie

You may have run in many situations when the users forgot to logoff from a session and they remain in a disconnected state, consuming resources.

If you have more than a few users to sign out, or if task manager isn’t responding and using cmd takes too long, you can sign out all of them at once.

In order to this, run Powershell as administrator and paste the following command:

quser | Select-String “Disc” | ForEach {logoff ($_.tostring() -split ‘ +’)[2]}
When it will finish processing this coomand, all the disconnected users will be signed out and you’ll have spare resources again

Solutie

Tip solutie

Permanent

Voteaza

(16 din 41 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?