
Method 3: Log Off Another User Using PowerShell This method doesn’t give you any alert or confirmation that the user you’re signing out will lose unsaved work. Next, run the following command to log off your desired account by specifying the session ID. Take note of the session ID of the user you want to sign out. Open the Command Prompt with administrative rights, run the query session command to see all users currently logged into the computer. Method 2: Log Off Another User Using Command Prompt Click on Sign out user when you need to proceed. You will get a warning that says the user’s unsaved data might be lost. Right-click on the user you want to log off and select the Sign off option. Go to the Users tab, it will list all users that are currently signed in to your system. Press the Ctrl + Shift + Esc keyboard shortcut to launch Task Manager. Method 1: Log Off Another User Using Task Manager To free up the resources being used by other logged-in accounts, you can log them off using Task Manager, Command Prompt and PowerShell.


I guess I could start with a longer period and then lower it if I still have problem users trying to bypass the procedure.How do I sign out other user accounts without restarting the computer? When someone forgets to log out of a public or shared PC, their account still consumes RAM in the background. However, the countdown might be enough of a reminder to close the critical apps I need closed. I didn't realize, though, that the user could cancel the reboot. We have many static IP's for users who VPN into their workstations (I haven't changed to using IP reservations, yet). If somebody is still actively on the machine I guess you don't want it going down? Yes that would work, but be careful if you are using DHCP, you dont want to go shutting down anything that shouldn't be -)Īlso, play with the -t variable, that sets in seconds how quickly the machine will be rebooted, and how long the user has to cancel the reboot. I think this looks pretty good! Can the "computer_name" be the IP address? If not, I probably have some DNS cleanup to do first (not that that's a bad thing). You can also look at the -L option as Miah suggested. This is kinda hinky & only works if DNS is working properly, machine is on the network & so on. This would send the reboot command to the remote machine then move to the next on the list & so on. Yes, though you could do it all from one machine & have it send the command out to the others:

OK.so this would have to be scheduled at each workstation individually? You could even have updates being applied on shutdown if needed, though that would be a separate setting. The -r makes the machine reboot, so you have the added advantage of the machine being rebooted regularly. BAT file & set up a scheduled task to run it on the machine.
