GPO for force a user to logoff at a specified time

R

Raffi Mesdjian

I am trying to use GPO to force a user or specific users
to be logged off based on the user account "logon hours"
option.

At the Domain level I have "enabled":

Microsoft network server: Disconnect clients when logon
hours expire

Network security: Force logoff when logon hours expire

Neither of these GPO's seem to do the trick. Any ideas?
 
S

Steven L Umbach

Those options will log a user off of domain resources, but not the local machine. You
could use the AT command to logoff a user at a particular time, possibly doing it for
a large number of users with like logoff times by using the AT command via a startup
script. You will need to test it out but logoff or shutdown should work and is
probably already on most computers. I have found that I need to use the /interactive
switch to get it to work. PsShutdown is free from SysInternals and also works well
for logoff/shutdown/reboot needs and has many options and will also work with
Scheduled Tasks to logoff a user. --- Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to force users logoff 1
Force Users to Logoff 6
cannot force logoff 1
Restrict logon hours 4
Group Policy for Logon Hours/Forced Loggoff 2
Auto logoff 1
security 1
force logoff after hours expire... 3

Top