Users of Microsoft Windows 11, 10, 8, 7, or Vista may receive an error when they try to log off a user using Task Manager. Here’s how to work around this issue.
User username (SessionId=2) could not be logged off. Access is denied.
- Right-click an empty area of the taskbar, then choose “Task Manager” to open the Task Manager window.
- Select the “Processes” tab
- Choose “Show processes from all users“.
- When prompted type the administrator password.
- Task manager should now run in Administrator Mode. End Task for processes that are running from users that are disconnected.
- Switch to the “Users” tab and log off the user. You may want to also logoff any other users who are “Disconnected”.
For Physically Console Logged-in users, all Processes needs to be “Closed” or “End Task”. In some instances, this process will not work. In that case, you may have to login with a different account that has administrator rights.
Itchydon says
Can’t believe I have never experienced this before. Works a treat. Many thanks
semsv says
I was just helped by this solution, had problems logging off an user due to profile issues.
Thanks again and greetings from Sweden. :)
Alberto Sepulveda says
Good! Thanks you!
V says
Cool Bro!!!
it can be handy for a veteran like me. :)
Many thanks.
Rui Moreira says
Many Thanks! :)
Beyrak Rahimov says
Thanks, Very Good!
bless you for that solution !!!
Clayton Mattos says
Thanks! Very Good!
Rafael Benza says
Thanks you very much. This solution helped me too.
I had to end the processes and then disconnect the user.
Dan says
Hi guys.
I’ve try this at home and it works great, just a question.
I need log off users from my work computer but I have not administrator privileges.
Is there any option I can use?
jayavel says
thanks its worked :)
Just IT User says
After closing all the Processes for all “Disconnected Users’ I was able to ‘LogOff’ those users.
2 Distinction of Logged Users – Actual RDP’d users and Physical console logon.
For Physically Console Logged-in users, all Processes needs to be ‘Closed’ or ‘End Task”
For RDP’d users, you can right-click then logoff that user.
Gabriel says
Great! It worked!
Erik says
It is nice to find a web site that offers simple advice that simply works.
Thank you!
Siva says
Thank you very much!
venu says
awesome ! thank you very much for the info
Girish Joshi says
Excellent! Worked for me on 29th Oct 2016. Thank you very much
shiva subramaniyan K says
Super it works for me
Windows user says
Worked! Thanks!
Adam says
Thank you so much! This worked for me.
MAK220 says
thanks for the info.
itai says
thanks !!!!
bless you for that solution !!!
Surendran says
Thanks, my problem resolved
Prajeesh says
Thx It worked :)
Nate says
Awesome! Thanks for the info.