Control advanced power settings with PowerCfg & PowerShell
One of the most common questions I get asked about Intune & Modern Device Management is “Would it be possible to do X with Intune?”
With the native support to deploy and run PowerShell scripts in either user or system contexts, this allows my answer to always be “Yes! We can do anything you want - you just need to decide on how much time you wish to invest in the solution.”
Case in point - I was recently asked if it were possible to configure the power settings of a fleet of laptops to change the behaviour of the device when the lid is closed while on power.

