How To Time Log Out?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
Is there any commands that allows you to log out automatically after certain amount of time, like

shutdown -s -t
 
After the -t add a space and the number of seconds you want to shut down.

For example shutdown -s -t 600 would shutdown in 10 minutes.

If you wish to have the PC shutdown at a specific time you can add this command to a scheduled task. In this case I would always go with a value of -t of at least 30 seconds. Gives programs time to shutdown cleanly.
 


Yes I know how the shutdown command work, but is there a logout command which works the same way?
 
Sorry. Misread.

There are a multitude of third party applications for doing this.

However, if you want to log off at a specific time or after a static number of minutes you can easily accomplish this with task scheduler.

The command shutdown /l does not appear to support the /t parameter, so when you set up a task, in the task properties, you can set it to "delay" for a specified period (Eg. 30 minutes).

You could create a shortcut on your desktop to run the task, so as soon as you run it, the computer will log off after that many minutes.

Or you could set the task to run at a fixed time and have it log off immediately at the specified time.

Is that what you are after?