We have some PCs that lock after five minutes, but the GPO for "Interactive logon: Machine inactivity limit" is set to 900 seconds. I have tried the following, but nothing has solved it:
Run gpresult /z > gpresult.txt
, searched for strings matching sleep, timeout or inactivity
, and any values matching "300" (five minutes in seconds)
Put the computer and user objects in a OU with no inheritance, ran gpupdate and removed the local GPO store from %systemroot%\System32\GroupPolicy\DataStore\0\SysVol\CompanyName.com
Set the following policy settings:
- Computer Configuration > Policies > Administrative Templates > System > Power Management -> Sleep Settings
- Specify the unattended sleep timeout (on battery) -> 0
- Specify the unattended sleep timeout (plugged in) -> 0
- Allow Applications to prevent Automatic sleep (on battery) -> Enabled
- Allow Applications to prevent Automatic sleep (plugged in) -> Enabled
Creating a new Power Policy based on High Performance with a higher Sleep Timeout and Screen Lock.
Creating a new Policy
User Configuration/Administrative Templates/Control Panel/Personalization/
- Enable screen saver - Enabled
- Password protect the screen saver - Enabled
- Screen saver timeout - Enabled, 900 seconds
Setting to enable unattended sleep timeout setting in registry:
- HKLM\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\7516b95f-f776-4464-8c53-06167f40cc99\8EC4B3A5-6868-48c2-BE75-4F3044BE88A7
- Attribute Value 2
- Increase Unattended Sleep Timeout to 900+
Given the OU with inheritance denied doesn't fix it means that it's either a registry setting, or a GPO setting which is not removed by removing the policy itself from the object.
gpresult /h c:\report.html
as administrator and see what you can find in there ?