Built in parental control in Windows XP – control the time users can login to your computer

This entry is part 1 of 1 in the series Parental Control
  • Built in parental control in Windows XP – control the time users can login to your computer

Parental Control is one thing that parents in our part don’t know about but parents in the West cry for. A good Parental Control software is essential for any home PC. But till Vista, no version of Windows had any sort of parental control. To set up a parental control we need to use multiple utilities available in XP together.


The most important part is the user access time restriction. Although you can’t control the total time a user logs in, you can set time limits and make XP shutdown automatically at a particular time. You can also restrict the time a user is allowed to log in.


The option is available through the Command Prompt by net user command. The net command is one among the most powerful and useful commands available in Windows XP command prompt. It allows an Administrator to do and automate many system administrative task. Here is an example where a user named : Others with password : Ajith is restricted to log in during 12PM to 1PM on my PC


net user command time control example

net user Others ajith /times:Su-Sa,3-15;Sa,9-12;net user Others ajith /times:all

To clear all restrictions just type : net user [account name] [Password/*] /times:all


What will happen if the user tries to login during the hours other than specified in the command. Well the user will be given a wrong password error. When I tried to run a program as the restricted user after loging in to Administrator the following error message was shown :

Error when a program is tried to run as restricted account

Error shown during restricted hours.

This is a brief summary about the net user commands on Microsoft Knowledge Base :

Net user

Adds or modifies user accounts or displays user account information.

Syntax

net user [UserName [Password | *] [options]] [/domain]

net user [UserName {Password | *} /add [options] [/domain]]

net user [UserName [/delete] [/domain]]

Parameters

UserName : Specifies the name of the user account to add, delete, modify, or view. The name of the user account can have as many as 20 characters.

Password : Assigns or changes a password for the user’s account. Type an asterisk (*) to produce a prompt for the password. The password is not displayed when you type it at the password prompt.

/domain : Performs the operation on the domain controller in the computer’s primary domain.

options : Specifies a command-line option. The following table lists valid command-line options that you can use.

Microsoft KB : Full options of net user command. You can Add/ Remove a user account, control all the aspects of an account and time restrict user log in using the net user command.


The times can be specified in increments of 1 hour. If you need to specify multiple times for different days you can use” /time:” option many times. The nest step would be to automatically shutdown the computer when the allowed time is over. This will be explained in the next post.

About the Author