By Thilak March 6, 2007

How to Restrict Logon Hours in Windows XP

An anonymous reader’s son plays games on his computer all day, neglecting his studies. He wants to impose some restriction on his son’s PC usage, so that he could concentrate more in his studies.

Well, there are lots of paid software available, but I hardly know any freeware which can restrict access to your PC. Inorder to effectively restrict access to your PC for based on timings; you can make use of NET USER command with the following syntax

[code]net user username /times:{day[-day][,day[-day]] ,time[-time][,time[-time]] [;…] | all}[/code]

Some Examples:

  • net user thilak /time:M-F,08:00-17:00
  • net user thilak /time:M-F,8am-5pm
  • net user thilak /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00
  • net user thilak /time:all (this allows user to logon at any time, on any day)

How to?

  1. Go to command prompt from Start > Run and type “cmd” (without quotes)
  2. Type any one of the appropriate net user command to restrict the user
  3. Type “exit” (without quotes)

Note: The time is limited to one hour increment, which means you can only restrict the user by one-one hour (like 13:00, 16:00, not 13:30 or 16:45). You can use the abbreviation for the day (that is, M,T,W,Th,F,Sa,Su)

Related Posts that you may like:

Discussion

Comments for “How to Restrict Logon Hours in Windows XP”

  • Stephen
    The thing is, that doesn't log them off, it just makes it so they can't log on. Type (in the command prompt and press enter afterwords) "NET ACCOUNTS /FORCELOGOFF:" and then the number of minutes after their logon hours expire it should take before they are logged off. If you want them to be logged off immediately you can type "NET ACCOUNTS /FORCELOGOFF:0".
    To undo this do "NET ACCOUNTS /FORCELOGOFF:NO".
    Hope this helps people like me.
  • Hitesh AGarwal
    How to use Free HUTCH GRPS and wht are the settings for Nokia 6600
  • ya madhur

    this one works for network environment but the requirements are u need to be the administrator of domain and change the command accordingly...u can also run a script to do the same.
  • Will This work in network environment also .
blog comments powered by Disqus

Welcome to TechBuzz

TechBuzz is a technology blog read by 3000+ readers every day. We regularly write about new trends in technology, useful computer application and new web services. If you are new here, please subscribe our feed or opt for email updates to get new articles to your inbox.

Free Daily Updates

You can get fresh daily articles delivered straight to your feed reader or email inbox. Please subscribe to our RSS feed or opt for our free newsletter

Recent Posts

Google’s Chrome Tablet Concept Revealed
February 3, 2010
By Thilak
Ixquick. Ixquick allows users to surf the web with complete privacy. It let’s users surf the world wide web safely without revealing any personally identifiable or private information to the websites being viewed.

Ixquick is a free service which provides complete anonymity to the user enabling the user to surf the internet anonymously and safely. They claim it to be world’s most private search engine.

Surf The Internet Anonymously With Ixquick!

Surf The Internet Anonymously With Ixquick!
January 28, 2010
By Meghan
Apple iPad Unveiled
January 28, 2010
By Meghan
Happy New Year!
January 1, 2010
By Meghan
WordPress Version 2.9 Is Out!
December 19, 2009
By Meghan