Add Windows/autologoff.md

This commit is contained in:
2023-12-19 09:50:04 +00:00
parent 873ebcfb52
commit 94db472856

12
Windows/autologoff.md Normal file
View File

@@ -0,0 +1,12 @@
# How to autologoff a User from PC when the PC is idle
Original: [Link](https://devblogs.microsoft.com/oldnewthing/20190723-00/?p=102727)
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.