Skip to main content
added 337 characters in body
Source Link
LPChip
  • 62.4k
  • 10
  • 101
  • 146

The best way is to setup Parental Controls to limit logging in, and a scheduled task that'll shutdown the pc at the time he must go to bed.

To setup parental controls

1. Go to the control panel, User Accounts. 2. Click Manage another account 3. At the bottom choose Set up Parental Controls 4. Either select his user with limited rights, or if there's just one user, press the Create a new user account link. 5. Select the limited uesr 6. Click On, enforce current settings 7. At the right, select the Off link besides Time. 8. In the new dialog, select which hours he is allowed to be on and which hours he is not allowed to be on.

To setup automatic shutdown

1. Go to the control panel, administrative tools, Task Schedular. 2. Click below Task Schedular (Local) on Task Schedular Library. 3. On the right, Choose Create Task... 4. Give it the name `Automatic Shutdown 5. Go to the tab Triggers 6. Press New... 7. Either select Daily (every day) or Weekly (to specify which days) 8. At the top right, select the time the pc has to automatically shut down. 9. Press OK. 10. Go to the tab Actions. 11. Press New... 12. Below Program/script: enter the following `shutdown` 13. To the right of Add arguments enter: -s -f -t 10 (the -t 10 gives a 10 second countdown before the shutdown starts. Note that you can abort a shutdown by entering shutdown -a. If you want to prevent being able to block this, change to -t 0 which makes the shutdown immediate. A second task that starts earlier can be to display a message. 14. Press OK. and OK again.

Thats it.

EDIT: I just tested the parental controls. If the user is not allowed to be on, windows will automatically log off the user. The user can't log in until they are allowed again, and the user has a shutdown button to shut down the pc. Any open programs/games will not save correctly, but thats also what the scheduled task will do.

The best way is to setup Parental Controls to limit logging in, and a scheduled task that'll shutdown the pc at the time he must go to bed.

To setup parental controls

1. Go to the control panel, User Accounts. 2. Click Manage another account 3. At the bottom choose Set up Parental Controls 4. Either select his user with limited rights, or if there's just one user, press the Create a new user account link. 5. Select the limited uesr 6. Click On, enforce current settings 7. At the right, select the Off link besides Time. 8. In the new dialog, select which hours he is allowed to be on and which hours he is not allowed to be on.

To setup automatic shutdown

1. Go to the control panel, administrative tools, Task Schedular. 2. Click below Task Schedular (Local) on Task Schedular Library. 3. On the right, Choose Create Task... 4. Give it the name `Automatic Shutdown 5. Go to the tab Triggers 6. Press New... 7. Either select Daily (every day) or Weekly (to specify which days) 8. At the top right, select the time the pc has to automatically shut down. 9. Press OK. 10. Go to the tab Actions. 11. Press New... 12. Below Program/script: enter the following `shutdown` 13. To the right of Add arguments enter: -s -f -t 10 (the -t 10 gives a 10 second countdown before the shutdown starts. Note that you can abort a shutdown by entering shutdown -a. If you want to prevent being able to block this, change to -t 0 which makes the shutdown immediate. A second task that starts earlier can be to display a message. 14. Press OK. and OK again.

Thats it.

The best way is to setup Parental Controls to limit logging in, and a scheduled task that'll shutdown the pc at the time he must go to bed.

To setup parental controls

1. Go to the control panel, User Accounts. 2. Click Manage another account 3. At the bottom choose Set up Parental Controls 4. Either select his user with limited rights, or if there's just one user, press the Create a new user account link. 5. Select the limited uesr 6. Click On, enforce current settings 7. At the right, select the Off link besides Time. 8. In the new dialog, select which hours he is allowed to be on and which hours he is not allowed to be on.

To setup automatic shutdown

1. Go to the control panel, administrative tools, Task Schedular. 2. Click below Task Schedular (Local) on Task Schedular Library. 3. On the right, Choose Create Task... 4. Give it the name `Automatic Shutdown 5. Go to the tab Triggers 6. Press New... 7. Either select Daily (every day) or Weekly (to specify which days) 8. At the top right, select the time the pc has to automatically shut down. 9. Press OK. 10. Go to the tab Actions. 11. Press New... 12. Below Program/script: enter the following `shutdown` 13. To the right of Add arguments enter: -s -f -t 10 (the -t 10 gives a 10 second countdown before the shutdown starts. Note that you can abort a shutdown by entering shutdown -a. If you want to prevent being able to block this, change to -t 0 which makes the shutdown immediate. A second task that starts earlier can be to display a message. 14. Press OK. and OK again.

Thats it.

EDIT: I just tested the parental controls. If the user is not allowed to be on, windows will automatically log off the user. The user can't log in until they are allowed again, and the user has a shutdown button to shut down the pc. Any open programs/games will not save correctly, but thats also what the scheduled task will do.

Source Link
LPChip
  • 62.4k
  • 10
  • 101
  • 146

The best way is to setup Parental Controls to limit logging in, and a scheduled task that'll shutdown the pc at the time he must go to bed.

To setup parental controls

1. Go to the control panel, User Accounts. 2. Click Manage another account 3. At the bottom choose Set up Parental Controls 4. Either select his user with limited rights, or if there's just one user, press the Create a new user account link. 5. Select the limited uesr 6. Click On, enforce current settings 7. At the right, select the Off link besides Time. 8. In the new dialog, select which hours he is allowed to be on and which hours he is not allowed to be on.

To setup automatic shutdown

1. Go to the control panel, administrative tools, Task Schedular. 2. Click below Task Schedular (Local) on Task Schedular Library. 3. On the right, Choose Create Task... 4. Give it the name `Automatic Shutdown 5. Go to the tab Triggers 6. Press New... 7. Either select Daily (every day) or Weekly (to specify which days) 8. At the top right, select the time the pc has to automatically shut down. 9. Press OK. 10. Go to the tab Actions. 11. Press New... 12. Below Program/script: enter the following `shutdown` 13. To the right of Add arguments enter: -s -f -t 10 (the -t 10 gives a 10 second countdown before the shutdown starts. Note that you can abort a shutdown by entering shutdown -a. If you want to prevent being able to block this, change to -t 0 which makes the shutdown immediate. A second task that starts earlier can be to display a message. 14. Press OK. and OK again.

Thats it.