Home > IT in a usual life > How to restrict a user access for PC at home – to prevent children from playing games all day

How to restrict a user access for PC at home – to prevent children from playing games all day


My 14 & 11 years old boys love games. It’s not a simple bad habit issue, but as long as I understand, it’s a well-developed culture of their communities with friends. On the other hand, the games are too funny to stop playing without wasting a long time, and game companies are too strong & strategic for people to refrain from playing games by themselves. Games are even free, inviting hundreds of friends to enjoy together, and don’t require any local installation – easy to start.

First step to move forward, is having a good agreement with my son. I just shared my concerns, and asked how much time he needs, rather than yelling or crying stuff. Finally we could reach a good agreement, and now we just need a few tips to support our agreement.

1. Add a standard user account for your child at Account settings (Windows 10)

. You need to be an administrator of PC, and your children to be standard user account.
. Click ‘Start’, and then ‘Settings’ button to open Accounts settings.

The above is the [Start] button


. Make sure you are the administrator as shown below.


.  In the current Accounts screen, click ‘Family & other people’, and click ‘Add someone…’ below ‘Other people’ section
. Click ‘I don’t have this person’s sign-in information’ when it asks a sign in option.
. Click ‘Add a user without a Microsoft account’ when it asks a MS account.
. Once you can meet the below screen, it’s almost done. Enter username (Jin for this example), and password for your child


. Make sure that an account you created is a standard user. You can check this by clicking ‘Change account type’ button.


2. Set logon hours based on the agreement

. Open a command prompt as administratorsettings

: To do this, click [Start] – [Windows System], then right-click [Command Prompt], and click [More] – [Run as administrator]

. In the command-prompt, type the following command, and run (press enter)

net user Jin /times:M-F,4pm-5pm;Sa-Su,4pm-7pm

: The above allows Jin to logon for 4pm – 5pm (Monday to Friday), and 4pm – 7pm (Saturday and Sunday)
: initials of days – Su, M, T, W, Th, F, Sa

. Run ‘net user Jin’ command to check the result as shown below


. To reset, or allow all the time again, run ‘net user Jin /times:all’



3. Set logoff action 

. The above command only limits logon, and it does not let current user logoff yet.
. Now, right-click [Start] button, and click [Run]


. Type ‘gpedit.msc’ as below, and click OK


. In local group policy editor, go to ‘User Configuration’ – ‘Administrative Templates’ – ‘Windows Components’


. Then select ‘Windows Logon Options’, and double-click ‘Set action to take when logon hours expire’


. In the following screen, check ‘Enabled’, and select ‘Logoff’ to set an action.


: By doing this, the user will meet the logoff  action when the configured logon time expires.

Good luck, 🙂

Categories: IT in a usual life
  1. 2018/04/20 at 10:11 am

    Any suggestion how to make it work on Windows 10 Home machine?


  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: