Question Locked

Force Logoff or lockout after login time expires

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am looking for a way to force a logoff/lockout or loss of network connectivity after a users login time has expired through active directory. I have experimented with the login time and the force logoff after time expires options through the GOP with no luck. I have written scripts that have re-started machines at this time, but that is a little too forcefull for my taste, it opens the door to many other issues. In a perfect world a user would simply loose all network connectivity while their login times are expired. the second best thing would be to simply have the workstation lock.

The issue at hand is the login time will prevent a user from logging in but will take no action if they are already logged on. The script i have will force a reboot of the workstation using PSSHUTDOWN as a scheduled task...as i mentioned this is a little too forceful and is causing issues.

Has anyone ever had to do this, or gotten anything like it to work in the past?

2 replies

by seanferd

to see if the "Network Security: Force logoff when hours expire" is being enabled?

If it is a problem with the user profile unloading, maybe UPHclean would help. (Either for the logoff, or pushing GP.)

Some other spots to check, perhaps:

Force shutdown from a remote system
Shut down the system
DC: Allow server operators to schedule tasks
Interactive logon: Require DC athentication to unlock
MSNS: Disconnect clients when logon hours expire

This discussion is closed to new replies.