how to time out an account

marqucha

Member
Sep 9, 2003
74
0
0
well here is the deal got 3 groups of students and one group needs to be time out at 6:00.......... i have it set up so that they cant log on to the server after 6. but i also need the group to time out at 6
the pc's are running xp pro and the server is running server 2000




 

Fuzznuts

Senior member
Nov 7, 2002
449
0
0
i had this same problem a while ago i found this on some forum it solved it for me :)


you have to do this command on a domain controller btw
When you enforce logon hours restrictions by using to Group Policy to navigating to Computer Configuration \ Windows Settings \ Security Settings \ Local Policies \ Security Options and enable Automatically log off users when logon time expires, users whose logon times settings prevent logon at this time are NOT permitted to log on. However, users who are logged on and should be logged off are not?

If this happens in your domain, try the following:

1. Open a CMD prompt.

2. Type:

net accounts /forcelogoff:<minutes> /domain

where <minutes> is the number of minutes after the log on time expires that a user will be forced off. The user will receive a warning message <minutes> before the forced log off.

NOTE: The default setting for the /forcelogoff switch is no. When no is set, forced logoff is prevented. To see the current setting, open a CMD prompt and type net accounts. If this returns:

Force user logoff how long after time expires?: Never

then forced logoff is prevented. I would NOT set <minutes> to 0.
 

marqucha

Member
Sep 9, 2003
74
0
0
hey fussnuts that didnt seem to work....... did what u told me but it doesnt seem to time out the accounts
 

djNickb

Senior member
Oct 16, 2003
529
0
0
If it's a Windows server you should be able to set up different groups for each group of students and then set restrictions on time for each group.
 

marqucha

Member
Sep 9, 2003
74
0
0
yeah i know ...done that
i have set it so that after 6 they cant log on but the people who are logged on already i cant get them to time out
another problem i am having is that i cant sync the time with the servers with the time on the local boxes....... tried using the net time command cant get it to work :(