Set a Custom Power Plan During Autopilot

May 9, 2019 John Marcum


The release of Windows 10 version 1703 ushered in a new way of configuring policy for Mobile Device Management, through select Group Policy administrative templates (ADMX backed policies). However during testing of ADMX ingestion into Intune, I found a major blocker to their use.

Currently, the ingested policies are not allowed to write to locations within the System, Software\Microsoft, and Software\Policies\Microsoft keys, except for a small number of whitelisted locations. You can see the complete list in this article.

As you may know a great number of settings typically configured via Group Policy Objects (GPO) write to restricted keys. Those who’d like true GPO like configurations when Azure AD joining devices may be left wanting more than the current admx ingestion allows for. Fortunately Michael Niehaus recently posted a great blog titled, “Configuring Windows 10 defaults via Windows Autopilot using an MSI” In the blog Mr. Niehaus describes the process of using the Wix Toolkit and Powershell to create Windows 10 customizations which can be deployed as a app from Intune. While this doesn’t provide the same locked down experience as a GPO it will at least allow us to set the desired default settings in Windows 10.

I’ve used other third-party tools in the past to create custom .msi files to be deployed from Intune but those tools are not free so I decided to build upon the foundation provided by Niehaus. Using the script he’s provide on GitHub I found it quite easy to add a custom default power plan to Windows 10 during Autpilot.

  1. On a test PC create a custom power plan called “Intune Power Plan” and configure the settings as you’d like them to be on all computers
  2. Run Command Prompt with admin rights
  3. Type “powercfg/l” command and press Enter
  4. Copy the GUID of the Intune Power Plan
  5. From the cmd prompt mkdir C:\temp
  6. From the cmd prompt run powercfg -export “C:\temp\IntunePowerPlan.pow” <GUID of the power plan>
  7. Download and extract Niehaus’ Intune branding files GitHub:

  1. Download and install Wix Toolkit 3.x:

  1. Download the powershell Wix extension

  1. Copy C:\temp\IntunePowerPlan.pow to the “IntuneBranding” directory extracted from Niehaus’ Intune branding GitHub
  2. In Branding.ps1 add the following to the end of the file add:

NOTE: When copying quotes from the internet they often convert to smart quotes, you may need to replace all of the quotes below with straight quotes using find and replace in notepad


# STEP 11: Set Custom Power Scheme

Write-Host “Importing the power scheme”

Mkdir “C:\Windows\Resources\Power Themes” -Force | Out-Null

Copy-Item “$($installFolder)AutopilotPowerPlan.pow” “C:\Windows\Resources\Power_Themes\AutopilotPowerPlan.pow” -Force

cmd /c powercfg /import “C:\Windows\Resources\Power Themes\AutopilotPowerPlan.pow”

Write-Host “Setting custom power scheme as default”

reg.exe add “HKLM\SOFTWARE\Policies\Microsoft\Power\PowerSettings” /v ActivePowerScheme /t REG_SZ /d “<GUID of the power plan>” /f | Out-Host

reg.exe add “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{025A5937-A6BE-4686-A844-36FE4BEC8B6D}” /v ActivePowerScheme /t REG_SZ /d “<GUID of the power plan>” /f | Out-Host


  1. Build the the msi using the “make.cmd” extracted from Niehaus’ Intune branding GitHub. For more detailed instructions see the in the download
  2. Upload the .msi to Intune adding the /quiet /norestart switches and assign it to a group of Autopilot devices.

Please reach out to New Signature for all of your Windows Autopilot needs or questions.

Previous Article
The Five Disciplines of Cloud Governance – Deployment Acceleration
The Five Disciplines of Cloud Governance – Deployment Acceleration

A few weeks back, my colleague Evan Riser and I held a webinar introducing the five disciplines of governan...

Next Article
Shrinking Devices and Limits
Shrinking Devices and Limits

It happens so often we’re almost immune to the “news” that a new device is going to change our lives foreve...