Windows 7: Disable Lock Workstation After 10 Minutes Using Group Policy

On my Windows 7 PC the system becomes locked after 10 minutes of inactivity. Usually I would find this setting next to the screen-saver configuration. The setting is grayed out, however.

I think this is because of corporate group policy. As I am an administrator on this computer I should be able to reconfigure the group policy setting using gpedit.msc.

What is the group policy setting that I need to change to prevent automatic locking of my workstation?

Edit: I don’t have configured a screen-saver. I also want to continue to be able to lock the workstation manually.

Solution:

To disable Lock:

Under HKEY_LOCAL_MACHINESOFTWARE MicrosoftWindowsCurrentVersionPoliciesSystem, create a new DWORD value named DisableLockWorkstation and set value to 1.

Then restart the computer.