Log off

usama khalil
usama khalil used Ask the Experts™
on
Dear
What is the way to apply automatic log off from Server after 5 minutes by using Active directory

Regards
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
is this a total logon time of 5 minutes? 5 minutes of inactivity? local logon or remote desktop RDS logon?
Desktop Applications Specialist
Commented:
You can use GPO. Do you want to log them off after few mins of inactivity? Like Airport kiosks?

Try this guide.

https://4sysops.com/archives/automatically-log-off-idle-users-in-windows/
Hello ThereSystem Administrator
Distinguished Expert 2018

Commented:
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
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Hello ThereSystem Administrator
Distinguished Expert 2018

Commented:
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
Shaun VermaakTechnical Specialist
Awarded 2017
Distinguished Expert 2018

Commented:
I also use idlelogoff.exe as per #a42481110
Nagendra Pratap SinghDesktop Applications Specialist

Commented:
Answer has screenshots

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial