How To

3 Ways to Log off Other Users on Windows 11

Logging off Other Users through various methods

8views

When you log off other users on your Windows 11 PC, you end their active sessions and close all their open applications. Their data remains saved, but the system will close the apps, and they will sign in again to access their work. This task may be necessary to improve system performance by freeing up system memory and CPU.

It also helps to improve system security and troubleshoot problems. Logging other users off can help in scenarios where you need privacy, working on a sensitive project, or experiencing problems with an app. This article will help you to know how to log others out.

1. Log other users off on Windows 11 with Task Manager

The Task Manager built-in tool provides information about processes, applications, and services running on your PC. It also helps you manage these resources, such as ending processes, disabling startup items, and monitoring performance.

To log off other users on Windows 11 using the Task Manager, follow these steps:

  1. Press the ctrl + shift + esc keys together to open Task Manager.
    log off other users on Windows 11
  2. When it opens, click Users on the left pane.
    log off other users on Windows 11
  3. Then, right-click the user you want to sign out and select the Sign off option.
    log off other users on Windows 11
  4. Finally, confirm the log-out by clicking the Sign out user button.

2. Log other users off with Command Prompt

The Command Prompt is a command-line interface (CLI) that helps you interact with your computer by entering commands. It is a powerful tool that can help to perform several tasks, including logging off other users. To log off other users on Windows 11 using the Command Prompt, follow these steps:

  1. Click the Windows icon, search for command prompt, and hit ctrl + shift + Enter simultaneously to open the Command prompt as an admin.
    log off other users on Windows 11
  2. To confirm, click Yes on the UAC prompt.
    FNIS error 76
  3. Then, enter the following command to see all current users, note the user ID, and hit Enter
    query session
  4. After noting the session ID, enter the following command and hit Enter to log out other users: 
    logoff ID
  5. Remember to replace the ID with the session ID of the account you noted initially.
  6. For example, if the session ID number for my account is 2, my code will look like this:
    logoff 2

3. Use Windows PowerShell to Log users off

Windows PowerShell is a task-based command-line shell and scripting language designed for system administration and automation. It is more powerful and flexible in managing Windows systems when compared to the traditional Command Prompt.

To log off another user using PowerShell, use the following steps:

  1. Click the Windows icon, search for powershell, and hit ctrl + shift + Enter simultaneously to open the Windows PowerShell as an admin.
  2. To confirm, click Yes on the UAC prompt.
  3. Then, enter the following command to see all current users, note the user ID, and hit Enter
    query session
    log off other users on Windows 11
  4. Afterward, enter the following command to query the computer for available host names and hit Enter
    hostname 
    log off other users on Windows 11
  5. Finally, enter the following command and hit Enter to log out a particular user: 
    $sessionID = ((quser /server:'PC-NAME' | Where-Object { $_ -match 'USERNAME' }) -split ' +')[2]
  6. Remember to replace the PC-NAME with the computer name and USERNAME with the username you want to log off from the PC.
  7. Or, simply enter the following command after noting the session ID and hit Enter to log out other users: 
    logoff ID

In conclusion, you can log off other users on Windows 11 as a way to free up system resources, secure the computer, or troubleshoot problems. There are three main methods for logging off other users: Task Manager, Command Prompt, or PowerShell.

Each method has advantages and disadvantages, so the best technique for you will depend on your specific needs. Depending on the permanence of your decision, you may also disable and remove an account from your Windows 11 PC.

Leave a Response

Richard Omachona
Richard is a techie in providing fixes and solutions for computer issues of various kinds. Among his contemporaries, he is a preferred choice. His experiences are vast in Windows operating systems, and several other skills in programming such as Python, Web Frontend designing implementing at industry standards, best practices in HTML, CSS and JavaScript. and basics in Web Backend. He also loves traveling, gaming and music.