![]() You can create another Task Schedule to remind you of sleep time. Note: there is no warning display before the computer goes to sleep. The computer went sleep, not turn off, so no worry about unsaved work. If you try to turn the computer back on, it will continue to sleep every 5 minutes (in 1 or 9 hours - depending on your setup). This schedule will put your computer to sleep at the chosen time. Add argument: -command add-type -assemblyname ::SetSuspendState(::Suspend, $false, $false).Check Stop all running tasks at end of repetition duration.Check Repeat task every: 5 minutes for a duration of 1 hours (or 8-9 hours, depending on you).Set the hour you want to turn off your computer.Set these properties in the General tab:.Start menu -> Type "Task Scheduler" -> Open Task Scheduler.In case someone doesn't want to set up parental control (someone wants to lock the computer from themselves, not their kids), here is another solution using only Task Scheduler, which I'm currently using: Any open programs/games will not save correctly, but thats also what the scheduled task will do. The user can't log in until they are allowed again, and the user has a shutdown button to shut down the pc. If the user is not allowed to be on, windows will automatically log off the user. A second task that starts earlier can be to display a message.ĮDIT: I just tested the parental controls. ![]() If you want to prevent being able to block this, change to -t 0 which makes the shutdown immediate. Note that you can abort a shutdown by entering shutdown -a. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |