memstechtips / UnattendedWinstall

Personalized Unattended Answer Files that helps automatically debloat and customize Windows 10 & 11 during the installation process.
MIT License
3.58k stars 399 forks source link

Ultimate Performance Power Plan BUG #158

Closed adriansaav27 closed 2 weeks ago

adriansaav27 commented 1 month ago

The power plan is not activated at maximum performance. To solve this problem, you must replace the lines:

powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 powercfg -setactive e9a42b02-d5df-448d-aa00-03f14749eb61

by:

$maxPerformanceScheme = powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61 $guid = [regex]::Match($maxPerformanceScheme, '[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}').Value powercfg -setactive $guid

memstechtips commented 2 weeks ago

Hey there,

This should be fixed in v2.0.0 - https://github.com/memstechtips/UnattendedWinstall/releases/tag/v2.0.0

Feel free to reopen the issue if it's not fixed.