If Machine will be locked after is set to zero, the policy is turned off and your PC will never lock after any inactivity. Now you can set desired inactivity time limit, which can range from 0 to 599940 seconds.Double-click on the “ Interactive logon: Machine inactivity limit” policy in the right pane. When the Local Security Policy is opened, expand Local Policies -> Security Options.Use the Windows key + R keyboard combination to open the Run command.Method 1: Auto Lock Windows 10 PC After Inactivity Using GPO Here are 2 simple ways to configure inactivity time to automatically lock your PC for all user accounts in Windows 10. This can prevent prying eyes from peeking your work. If you routinely forget to lock the screen when you walk away from your computer, it’s recommended to set Windows 10 to automatically lock itself after a specific period of inactivity.