Files
Boilerplates/Windows/autologoff.md
2023-12-19 09:50:04 +00:00

856 B
Raw Blame History

How to autologoff a User from PC when the PC is idle

Original: Link

  1. Use policy to enforce a screen saver with the desired idle timeout. It doesnt matter what the screen saver is, as long as its a screen saver. The Blank screen saver works fine for this purpose.

  2. In Local Security Settings, Advanced Audit Policy Configuration, System Audit Policies, Logon/Logoff, configure “Other Logon/Logoff Events” to audit Success events.

  3. Define a scheduled task as follows: When running the task, use the following user account: Users. Triggers: Begin the task: On an event; Settings: Basic; Log: Security; Source: Microsoft Windows security auditing; Event ID: 4802. Actions: Start a program; Program/script: C:\Windows\System32\shutdown.exe; Add arguments: /l /f.