Sleep & lock device on lid close — Intune configuration profile power management

Niklas Tinner
2 min readApr 5, 2023

--

Windows offers some energy and power management settings. Of course we can configure them through Intune. But first on the Windows side we have the following options:

Energy plan

Actions

Windows power buttons and password protection

Windows can be set into different modes:

  • Sleep, also known as Standby — the computer saves its current state to memory (RAM) and powers down most of its components
  • System hibernate sleep — (the computer saves its current state to the hard disk and powers down completely)
  • Shutdown

Modern Standby also comes to play here: Modern Standby | Microsoft Learn

Intune

You can find the available configurations in the Settings Catalog under Administrative Templates>System>Power Management this is where you can find mostly of the energy plan settings.

Sleep & lock device on lid close

From my experience these are the required configurations to lock a device immediately after the lid was closed — it will also set the device into sleep mode.

Intune settings catalog

Note that your device should support the Standby (S0 Low Power Idle) state, otherwise it can take a few seconds until the device wakes up. You can check this for your device with:

powercfg /availablesleepstates
Available and unavailable sleep states

--

--

Niklas Tinner
Niklas Tinner

Written by Niklas Tinner

Founder Oceanleaf & Microsoft MVP

No responses yet