Any app to set logout or shutdown timer

mohitakundi

Distinguished
Mar 19, 2015
154
0
18,710
Hey everyone
I was looking for an app or setting that after we log in to windows will automatically logout after a set time
Like :-
I set auto logout at 1 hour(not idle)
User logs in
User uses the computer for an hour
After an hour it automatically logs out for next user
 
Solution
Hi, I did a little research on your problem and came up with a solution (that works on MY computer).

I created a VBS script with the info from this page:
https://groups.google.com/forum/#!topic/microsoft.public.windows.powershell/hN9k-NGUSy8

The message by cmoore01 near the bottom has the script in it that works for me, except I had to use the "shutdown.exe" rather than "logoff.exe".
I used:
"c:\windows\system32\shutdown.exe -l -f"
to accomplish the log off. The "-f" means force shutdown (there will be no chance to save any opened documents).

Note that the script is 3 lines long, you can remove the line that says "seconds/minute". And also remove the "0, True" from the end of the 3rd line *if* you use shutdown.exe like I did.

I...
Hi, I did a little research on your problem and came up with a solution (that works on MY computer).

I created a VBS script with the info from this page:
https://groups.google.com/forum/#!topic/microsoft.public.windows.powershell/hN9k-NGUSy8

The message by cmoore01 near the bottom has the script in it that works for me, except I had to use the "shutdown.exe" rather than "logoff.exe".
I used:
"c:\windows\system32\shutdown.exe -l -f"
to accomplish the log off. The "-f" means force shutdown (there will be no chance to save any opened documents).

Note that the script is 3 lines long, you can remove the line that says "seconds/minute". And also remove the "0, True" from the end of the 3rd line *if* you use shutdown.exe like I did.

I don't know your level of computer knowledge so I'm sorry if this is too complicated for you (it's complicated for me!). If it is, just ignore it and look for another solution.
 
Solution