General discussion

Locked

Problem in Force Logoff

By imranmcse ·
I have defined logon hours to be denied from 3 - 4 am for all Users.

Under Default Domain Policy and Domain Controller Security Policy I have enabled Force Logoff when logon hours expire.

Most users leave their computer on overnight, but with the Force Logoff enabled, the users do not get logged off when their hours expire.

I have read around and have seen that the force logoff does not actually force logoff as the name suggests.

Help me that is there any thirs party software which may enforce logoff when time expires

Thanks in advance for any help.

This conversation is currently closed to new comments.

6 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by JimKlallsoo In reply to Problem in Force Logoff

If you type "net accounts" at a cmd line, I suspect you'll see the following line:

Force user logoff how long after time expires? :
Never

To set this use the following cmd:

net accounts /forcelogoff:<minutes> /domain

Where "minutes" is the number of minutes ahead of the forced logoff to warn the user.

Collapse -

by imranmcse In reply to

It is not working when restricted time came users is still logged on not being logged off

Collapse -

by trockii In reply to Problem in Force Logoff

As far as I am aware active directory denial of logons only go into effect once a person logs out THEN attempts to log in during the denied time frame. You may have to make a script that totally reboots the system or turns off the system completely at a certain time.

Collapse -

by cmptrwhz In reply to Problem in Force Logoff

You might want to try this link.. it gives a script for remote logoff and shutdown.

http://www.enterpriseitplanet.com/resources/scripts_win/article.php/3083081

Hope this helps..

Mike

Collapse -

by ctmoore1998 In reply to Problem in Force Logoff

Run GPedit.msc and configure to automatically log users off under the security options.

Collapse -

by imranmcse In reply to

I have made it but not working.

Back to Windows Forum
6 total posts (Page 1 of 1)  

Related Forums