Enable device lock when screen lid is shut

Aran Billen 941 Reputation points
2023-11-13T11:58:27.4633333+00:00

Hi all,

 

I use a mixture of dell and HP devices with intune with HP devices they lock when the lid is shut, this setting I have not made myself and seems automatic. 

 

I have followed some guides to try doing it via intune or powershell no luck. Like: https://niklastinner.medium.com/sleep-lock-device-on-lid-close-intune-configuration-profile-power-ma...

 

Any ideas? 

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ZhoumingDuan-MSFT 17,165 Reputation points Microsoft External Staff
    2023-11-14T02:59:55.2333333+00:00

    @Aran Billen,Thanks for posting in Q&A.

    From your description, I know you want to enable device lock when screen lid is shut but failed. To clarify this issue, please check the information below.

    1.Check whether the device edition is support and scope is device.

    • Pro
    • Enterprise
    • Education
    • Windows SE
    • IoT Enterprise / IoT Enterprise LTSC

    https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-power#selectlidcloseactiononbattery

    https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-power#selectlidcloseactionpluggedin

    2.Check whether the targeted device applied the policy. Registry Location: Computer\HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Power\PowerSettings

    3.Check if there are related errors in Event Viewer. Location: Event Viewer > Applications and Services Logs > Microsoft > Windows > DeviceManagement-Enterprise-Diagnostic-Provider > Admin

    Please try above information, if there is any update, feel free to contact me.

    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.