Command Line to Change Screen Saver Grace Period Before the Computer Locks

Command line to change the grace period of time that you have between the time that the screen saver comes on and the computer locks itself.

In this case, 300 seconds.

c:\windows\system32\cmd.exe /k %windir%\system32\reg.exe ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v screensavergraceperiod /t REG_DWORD /d 300 /f