28,661 questions
Create a new Group Policy Object (GPO)
- Edit the policy and go to the User Configuration -> Policies -> Administrative Templates -> Control Panel -> Personalization. There are several options to manage screen saver and screen lock settings in this section:
- Enable screen saver
- Password protect the screen saver — prompts to enter a password to unlock a computer
- Screen saver timeout – sets time in seconds when a screen saver will be enabled and a computer will be locked if a user is inactive
- Force specific screen saver – you may specify a screen saver file to be used. The most often it is scrnsave.scr (you can make a slideshow screen saver using GPO)
- Prevent changing screen saver – prevents users from changing screen saver settings
- Force specific screen saver – you may specify a screen saver file to be used. The most often it is scrnsave.scr (you can make a slideshow screen saver using GPO)
- Screen saver timeout – sets time in seconds when a screen saver will be enabled and a computer will be locked if a user is inactive
- Password protect the screen saver — prompts to enter a password to unlock a computer
- Enable screen saver
- Enable all policies and set a computer idle time in the Screen saver timeout policy to 300 seconds (which corresponds to 5 minutes of inactivity).
https://woshub.com/windows-lock-screen-after-idle-via-gpo/
When you enable this group policy for a OU this policy will apply all the users inside this OU