https://www.howtogeek.com/402261/how-to-sign-other-users-out-of-windows-10/
Windows supports multiple accounts on the same device. If someone forgets to sign out of their account, their profile still runs processes and consumes resources in the background. Here’s how you can sign out other users on the same computer.
When a user locks their account, the computer returns to the sign in screen but leaves their account signed in and running all their programs and processes in the background. This could be problematic for other people using the computer. You can sign out other users either with Task Manager or the Command Prompt, and we’ll walk you through both methods.
Note: To sign another user out of your device you must be using an account with administrator privileges.
Open up Task Manager by pressing Ctrl+Shift+Esc, then click the “Users” tab at the top of the window.
Select the user you want to sign out, and then click “Sign Out” at the bottom of the window.
Alternatively, right-click on the user and then click “Sign Off” on the context menu.
A prompt lets you know that any unsaved data on the user’s account could be lost if you proceed. Only proceed if you know they won’t lose any data. Click “Sign Out User.”
Open an elevated Command Prompt window by hitting Start, typing “cmd” into the search box, right-clicking the result, and then clicking “Run As Administrator.”
At the prompt, type the following command to identify the users currently signed into the device: