1. Hey Guest Did you know you can win an Honor 10 phone worth ₹33,000 and an additional ₹70,000 in paytm vouchers, just by replying to some threads and taking part in the discussions happening in the Honor Hub?

    What are you waiting for? Start commenting and start winning! Remember to read the instructions posted here.

    Dismiss Notice

How To: Restrict login hours of a particular user

Discussion in 'Tutorials' started by ritesh.techie, Aug 8, 2009.

Thread Status:
Not open for further replies.
  1. ritesh.techie

    ritesh.techie New Member

    Joined:
    Jul 9, 2009
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Bhopal, India
    If you want to restrict a certain user to login a computer in between certain time in case you run a business than the following trick will help you. To restrict a users logon hours , use the net user command. These commands are used from the Command Prompt.

    Go to: Start > RUN > and type cmd

    Below are some examples that you can use:

    1 - net user Naina /time:M-T,08:00-17:00 (In this case user Naina is allowed to login between Monday to Friday, in between 8 AM to 5 PM)

    2 - net user Vishal /time:M-F,8am-5pm

    3 - net user Gates /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00

    4 - net user Shine /time:all (this one means this user can always log on)


    Note:You can only restrict when a user can log on to the system. There is no way to force a user to log off when their hours expire, without any third party script or software.

    In BTW, I don't know whether this post is being in the forum or not if it is there MODS please delete it
     
  2. Dark Core

    Dark Core Freak Beta 1

    Joined:
    Dec 13, 2008
    Messages:
    219
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Nagercoil
    Gud Tutor dude ;)
     
  3. a_k_s_h_a_y

    a_k_s_h_a_y Dreaming

    Joined:
    May 22, 2007
    Messages:
    2,505
    Likes Received:
    17
    Trophy Points:
    38
    Location:
    bangalore
    We can log off a user after some hours.
    Using the Windows Task manager. And the shutdown.exe !!
     
Thread Status:
Not open for further replies.

Share This Page