How to stop PCs locking after 15 minutes?

B Wylde 20 Reputation points
2024-02-01T15:10:19.2+00:00

Afternoon all, Does anyone know where I can find the setting / policy that is forcing our computers to lock after 15 minutes? We haven't implemented this and so I feel like it is something that has come through an update? I have tried modifying settings in Admin Templates or Settings Catalogue but haven't had any luck.

Microsoft Intune Security
Microsoft Intune Security
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Security: The precautions taken to guard against crime, attack, sabotage, espionage, or another threat.
370 questions
{count} votes

Accepted answer
  1. Marco Zemp 235 Reputation points
    2024-02-04T13:58:45.07+00:00

    @B Wylde if you use Intune and the one from ZhoumingDuan-MSFT didn't work you can have a look at the InteractiveLogon_MachineInactivityLimit

    MaxInactivityTimeDeviceLock (Already mentioned by ZhoumingDuan-MSFT)
    https://video2.skills-academy.com/en-us/windows/client-management/mdm/policy-csp-devicelock#maxinactivitytimedevicelock

    InteractiveLogon_MachineInactivityLimit

    https://video2.skills-academy.com/en-us/windows/client-management/mdm/policy-csp-localpoliciessecurityoptions#interactivelogon_machineinactivitylimit

    If you are using hybrid joined devices, a GPO may overwrite the setting. In this case, you would either have to take this from the GPO or apply the setting via the GPO.

    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Marco Zemp 235 Reputation points
    2024-02-01T16:45:31.46+00:00

    There are potentially two settings which are setup in most companies I know. There is a the machine inacitivty limit which is a computer based setting and the energy saving settings related to the user account. Most companies use both of them. In that case you need to create an exception for the user and also for the computer account for the related policy.

    Interactive logon: Machine inactivity limit

    https://video2.skills-academy.com/en-us/windows/security/threat-protection/security-policy-settings/interactive-logon-machine-inactivity-limit

    Managing Power with Group Policy:

    https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/managing-power-with-group-policy-part-1-of-3/ba-p/395121

    0 comments No comments

  2. ZhoumingDuan-MSFT 10,730 Reputation points Microsoft Vendor
    2024-02-02T01:18:42.0433333+00:00

    @B Wylde,Thanks for posting in Q&A.

    From your description, I know you want to lock screen when device is inactivity after 15 minutes via Intune.

    Based on my testing, we can create a custom profile to achieve this.

    Here are some details for the reference.

    1.Create a custom profile in Configuration profile and deploy this profile to the group you want.

    Name: ScreenLock

    OMA-URI: ./Device/Vendor/MSFT/Policy/Config/DeviceLock/MaxInactivityTimeDeviceLock

    DataType: Integer

    Value: 15 (Value in minutes you want)

    User's image

    2.When the deployment status of this profile is succeeded, restart the devices that you assigned.

    3.Wait a minute, and we can find that the screen is locked after 15 minutes.

    Hope this can help you.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. B Wylde 20 Reputation points
    2024-02-04T13:47:51.9533333+00:00

    Thank you @ZhoumingDuan-MSFT and @Marco Zemp Unfortunately, neither of these have worked. Do you have any other suggestions?