Enable AMD Ryzen plan by default

This commit is contained in:
Manuel Thalmann 2023-07-29 04:25:24 +02:00
parent ea590b2201
commit ecd8a56a47

View file

@ -23,6 +23,11 @@ function Install-PortValhallaDrivers {
choco install -y geforce-game-ready-driver icue wavelink;
$context.RemoveDesktopIcon("*Wave Link*");
$context.RemoveDesktopIcon("*GeForce*");
Write-Information "Set AMD Ryzen power plan as default";
$ryzenPlan = [regex]::Match(((powercfg /LIST) | Where-Object { $_ -like "*(AMD Ryzen*"; }), "Power Scheme GUID: ([0-9a-f-]+) ").Groups[1];
powercfg /S $ryzenPlan;
$context.PreventSleepMode();
}
function Install-PersonalDrivers {