Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

Windows: “User username (SessionId=2) could not be logged off. Access is denied.” Fix

Mitch BartlettDecember 13, 2022 Comments (24)

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.

  1. Right-click an empty area of the taskbar, then choose “Task Manager” to open the Task Manager window.
  2. Select the “Processes” tab
  3. Choose “Show processes from all users“.
  4. When prompted type the administrator password.
  5. Task manager should now run in Administrator Mode. End Task for processes that are running from users that are disconnected.
  6. 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.

Categories: Windows

Author Mitch Bartlett

Through my career that spans over 20 years I have become an expert in Microsoft Systems Administration, Android, and macOS. I started this site as a technical guide for myself and it has grown into what I hope is a useful knowledgebase for everyone.

You Might Also Like

  • Linksys WUSB54G Drivers For Windows 10 & 8 (64-bit)

    Mitch BartlettHardware
  • The Bible For Making Your Windows 10 Computer Run Faster

    Mitch BartlettWindows
  • How to CTRL+ALT+Delete in Remote Desktop

    Mitch BartlettWindows
  • authentication-error-function-requested-not-supported-windows-10

    Fix Windows 10 Remote Desktop Authentication Errors

    Madalina DinitaWindows

Comments

  1. Itchydon says:
    February 9, 2023 at 10:08 am

    Can’t believe I have never experienced this before. Works a treat. Many thanks

  2. semsv says:
    October 19, 2021 at 7:09 am

    I was just helped by this solution, had problems logging off an user due to profile issues.
    Thanks again and greetings from Sweden. :)

  3. Alberto Sepulveda says:
    June 12, 2019 at 9:06 am

    Good! Thanks you!

  4. V says:
    March 24, 2019 at 5:59 am

    Cool Bro!!!
    it can be handy for a veteran like me. :)

    Many thanks.

  5. Rui Moreira says:
    February 7, 2019 at 6:07 am

    Many Thanks! :)

  6. Beyrak Rahimov says:
    January 23, 2019 at 6:42 am

    Thanks, Very Good!

    bless you for that solution !!!

  7. Clayton Mattos says:
    December 13, 2018 at 4:23 pm

    Thanks! Very Good!

  8. Rafael Benza says:
    December 13, 2018 at 4:15 am

    Thanks you very much. This solution helped me too.

    I had to end the processes and then disconnect the user.

  9. Dan says:
    September 27, 2018 at 8:08 am

    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?

  10. jayavel says:
    October 29, 2017 at 1:22 am

    thanks its worked :)

  11. Just IT User says:
    June 14, 2017 at 2:28 pm

    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.

  12. Gabriel says:
    April 13, 2017 at 2:45 pm

    Great! It worked!

  13. Erik says:
    March 15, 2017 at 8:34 pm

    It is nice to find a web site that offers simple advice that simply works.

    Thank you!

  14. Siva says:
    February 18, 2017 at 7:08 am

    Thank you very much!

  15. venu says:
    January 2, 2017 at 7:02 am

    awesome ! thank you very much for the info

  16. Girish Joshi says:
    October 29, 2016 at 12:59 am

    Excellent! Worked for me on 29th Oct 2016. Thank you very much

  17. shiva subramaniyan K says:
    August 28, 2016 at 2:25 am

    Super it works for me

  18. Windows user says:
    December 14, 2015 at 4:43 pm

    Worked! Thanks!

  19. Adam says:
    December 2, 2015 at 8:08 am

    Thank you so much! This worked for me.

  20. MAK220 says:
    November 6, 2015 at 8:59 am

    thanks for the info.

  21. itai says:
    November 2, 2015 at 3:43 am

    thanks !!!!
    bless you for that solution !!!

  22. Surendran says:
    September 10, 2015 at 1:21 am

    Thanks, my problem resolved

  23. Prajeesh says:
    August 2, 2015 at 3:09 pm

    Thx It worked :)

  24. Nate says:
    January 5, 2015 at 4:51 pm

    Awesome! Thanks for the info.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • error 400 when signing in

    Encountered Error 400 When Signing In to Microsoft? Here’s What You Can Do 

  • unable to create notebook error in onenote

    We Were Unable to Create Your Notebook Error in OneNote – Common Fixes 

  • error code 0x800704f8 fix

    Error Code 0x800704f8 – How to Fix 

  • back button in browsers doesnt work

    What to Do if the Back Button in Browser Doesn’t Work 

  • could not find this item

    “Could Not Find This Item” When Trying to Remove Files

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2026 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2026 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on December 13, 2022 by Mitch Bartlett