Added new Set_ScreenSaverGracePeriod.ps1 script (#34340)

This script is part of the CSA project to create Windows controls for
customer-rembrandt.
This commit is contained in:
Brock Walters 2025-10-16 12:08:36 -04:00 committed by GitHub
parent 2f6cacb09d
commit 92a58851fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,9 @@
# script: Set_ScreenSaverGracePeriod.ps1
# author: brock@fleetdm.com © 2025 Fleet Device Management
# description: PowerShell command to set MSS:(ScreenSaverGracePeriod) - the time in seconds before the screen saver grace period expires
# Value to be configured for grace period as an interger in seconds
$NumberOfSeconds = "5"
# Command to set value in Windows Registry
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name ScreenSaverGracePeriod -Value $NumberOfSeconds -Force