Configure power management
In the Configuration Manager console, go to the Assets and Compliance workspace, and select the Device Collections node. Select the collection that you want to exclude from power management. In the Home tab of the ribbon, in the Properties group, select Properties. Switch to the Power Management tab, and select Never apply power