Sleep & lock device on lid close — Intune configuration profile power management
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 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.
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