Built in parental control in Windows XP - control the time users can login to your computer
One of the talked about feature of Windows Vista was the parental control. In Vista the parental control is in a matured form and is available with lots of functions which were not manageable centrally on any previous versions of Windows.
How to download videos as mp4 from youtube site
One feature is the time login time limit. Parents can actually set the time their children can access the computer for each day and this is shown in a grid view for convenience.

But what if you don’t have Vista. You got XP at home
What do you do ?Well worry not this time limited login is actually available in Windows XP too, but in a more crude form. The option is provided to you through the Command Prompt by net user command. The net services 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. Let me come to the point :
An example :

net user Others ajith /times:Su-Sa,3-15;Sa,9-12;
will restrict a user with account name Others and password ajith from logging in at times other than the specified ones.
To clear all restrictions just type :net user [account name] [Password/*] /times:all
Just Play with the command and you can find other uses of net service commands. Now 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 :

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.
The article is very long so please goto the link given at the bottom and read.contact me
Microsoft KB : Read about net services command | Full options of net user command
Buy me a cup of hot coffee - help me keep posting all through the nightso that you will get the updates automatically to your feed reader.
Tags: Admin, Command Prompt/Shell, User
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


This is a great How-To and one that I bet a lot of people have wondered about!
Thanks Saman BTW hows your studies going..You are really into studies now right..
Sound great however:
1, What happens if you don’t know the password of the user A/C your trying to control. Can you still control the A/C without it?
2, What happens if you initially know the password, however, the user your trying to control changes their password? Can they now get in?
Hi Reidsi,
Answers :
1, Yes, you can reset the user password using the method mentioned here - http://www.exnol.com/windows/globally-control-and-change-all-users-passwords-in-windows ,
2, If you have changed the users allowed time and after that the user changes their password, it would not affect the control. The time control will still be enabled.
I think that would have cleared your doubts. If you have any more doubts please feel free to contact me or comment me.Thank you for you interest
What happens if they are logged on during the allowed hours, but they stay logged on past the ending hour? Will the pc log them off or shut down? what happens?
Hi Mike,
thanks for your comment…
I am currently testing the condition you specified.. please wait for a day.. I will reply soon
Anything new with this?
Thanks Brit… forgot it somehow.. will reply soon
I’m very interested in this question as well. For me, it’s useless unless it will log them off when the time is up. Or, is there any shareware out there that does the same thing?
I want my kid to use the Internet for not more than 30 to 40 minutes a day.
Can this command, in some modified form, be used to only restrict the time Internet is used instead of restricting the long-on time of the whole computer. I have windows xp home on my pc.
Hi Alok..
We can implement this in a different way actually. Please tell me which mode of Internet access you use - using dialup or LAN
Hi Ajith,
Thanks for the prompt response !
I am using BSNL’s broadband connection.
Alok it is much easier to allow your an account to use net continuously for 30 or 40 minutes. It is very hard to set an account to have internet access for a total of 40 minutes in different slots. I will post about how to do the former.. this week
Ajith I will be very happy with the easier option! i.e a continuous slot of 30 minutes starting at a particular time on weekdays (and, if possible, a 45 minute slot at a different starting time on saturdays and sundays.)
OK I think you can do it with task scheduling.. So I will reply by this Sunday..
Excelent comments. My Favorit Blog. Thank you Autoversicherung
What happens if the user figures out they just change the system time to fit into the allowed time schedule?
I suppose XP home can’t do user level rights to prevent them changing the system time…
Is this better than the free-for-home-use k9webprotection solutions?
Add the user to a non administrative group..
Hi,
There was a question about what happens if they are logged on during the allowed hours, but they stay logged on past the ending hour? Will the pc log them off or shut down? what happens?
Any observations on that?
Thanks!
Hi Khew.. I am gonna try that and then tell you the result..
K9webprotection is a hundred times better than the default XP one. But it can only control internet access