Restricted Login Hours

Discussion in 'Windows Desktop Systems' started by Tinker, Jan 6, 2003.

  1. Tinker

    Tinker Guest

    I found this of interest. The source is Microsoft TechNet.....


    Subject: Setting Restricted Login Hours on XP Standalone System

    I recently had to contact Microsoft Tech Support for assistance on this so I wanted to post the article on the web incase someone else had this same issue.

    Situation: You want to restrict the logon days / times of a user account in XP and are a standalone machine.

    Reason: You may wish to restrict teens who arrive home before adult supervision from accessing your broadband always on connection, limit employees to only work hours access etc..

    Steps:

    To Set restrictions:

    Click Start
    Click Run
    Type cmd in the run box and press enter.
    The following is a sample of what you would type:
    net user testuser /times:M-F,5pm-9pm; Sa,6am-9pm;Su,6am-9pm

    Where testuser is the local account name.

    To Remove Restrictions:

    Click Start
    Click Run
    Type cmd in the run box and press enter.
    The following is a sample of what you would type:
    net user testuser /times:all

    Where testuser is the local account name.

    I hope someone else finds this useful as I did.

    Ken Foster
     
  2. omgsoup

    omgsoup OSNN Senior Addict

    Messages:
    284
    thank god my parents know nothing about computers
     
  3. Nick M

    Nick M Moderator

    Messages:
    3,961
    Bwhahaha. When I have kids ;)
     
  4. Hipster Doofus

    Hipster Doofus Good grief Charlie Brown

    Messages:
    5,920
    Location:
    Melbourne Australia
    Hipster quickly sends BenQuilter's parents email, snail mail, phone call, ESP, telegram. :p
     
  5. Jewelzz

    Jewelzz OSNN Godlike Veteran

    Messages:
    10,977
    Location:
    California
    Damn! Where was this when I needed it? Nice to know though. Thanks Tinker for posting this :)
     
  6. PseudoKiller

    PseudoKiller Zug Zug

    Messages:
    3,858
    Location:
    Ice Crown Citadel
    I rely on that for my wife... oh wait I have said to much got to go :D
     
  7. Will this trick work on Windows XP Home Edition?
     
  8. Geffy

    Geffy Moderator Folding Team

    Messages:
    7,805
    Location:
    United Kingdom
    Hrmm, you mean I could do this on my parents machine so that my dad wont be able to be up to the weeee hours of the morning messin with computer or t'internet.
     
  9. Grandmaster

    Grandmaster Electronica Addict Political User Folding Team

    Messages:
    10,574
    Location:
    Santa Clara, CA
    Nice...would be nice to pull this off as a prank on someone! :p
     
  10. Henyman

    Henyman Secret Goat Fetish Political User

    wow thats quite nice 2 know:cool:

    /me deletes this page incase his parents see it.

    would b a great prank 2 play.......hmmmm skool computers............:happy:
    change it so u can only logon on a sunday night + midnight:eek:
     
  11. rushm001

    rushm001 In the beginning...... Political User

    Messages:
    3,480
    Location:
    Norfolk, UK
    Don't you need to have administrative rights to do this though?
     
  12. Henyman

    Henyman Secret Goat Fetish Political User

    hmm good point.......anyone wannna try it out?
     
  13. I just tested it... yes it does work for xp home edition too.