Link to home
Start Free TrialLog in
Avatar of usama khalil
usama khalil

asked on

Log off

Dear
What is the way to apply automatic log off from Server after 5 minutes by using Active directory

Regards
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

is this a total logon time of 5 minutes? 5 minutes of inactivity? local logon or remote desktop RDS logon?
ASKER CERTIFIED SOLUTION
Avatar of Nagendra Pratap Singh
Nagendra Pratap Singh
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Hello There
Hello There

Create a new task in Task Scheduler.
Conditions tab -> Start the task if the computer is idle for: 5 mins
Actions tab -> run shutdown -l -t 0 command
Triggers tab -> Begin this task: On idle
Or just use GPO to lock the computer after 5 minutes of inactivity.
User Configuration -> Policies -. Administrative Templates -> Control panel -> Personalization -> Screen Saver Timeout -> Enable + set it to 300 sec
GPO it the right option set automatic log off after 5 mins.
Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Local Policies -> Security Options -> Network security: Force logoff when logon hours expire
I also use idlelogoff.exe as per #a42481110
Answer has screenshots