From 2a2380225a569a5b4c96dc4718ad09179677a3dc Mon Sep 17 00:00:00 2001 From: he3als <65787561+he3als@users.noreply.github.com> Date: Sat, 15 Jun 2024 17:50:43 +0100 Subject: [PATCH] fix(power saving): full path to toggledev --- .../AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 index 9f86e5b0a1..3e5e76fc6c 100644 --- a/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 +++ b/src/playbook/Executables/AtlasModules/Scripts/ScriptWrappers/DisablePowerSaving.ps1 @@ -54,7 +54,7 @@ powercfg /setacvalueindex scheme_current 54533251-82be-4824-96c1-47b60b740d00 4d powercfg /setactive scheme_current Write-Host "Disabling power-saving ACPI devices..." -ForegroundColor Yellow -& toggleDev.cmd -Disable '@("ACPI Processor Aggregator", "Microsoft Windows Management Interface for ACPI")' | Out-Null +& "$([Environment]::GetFolderPath('Windows'))\AtlasModules\Scripts\toggleDev.cmd" -Disable '@("ACPI Processor Aggregator", "Microsoft Windows Management Interface for ACPI")' | Out-Null Write-Host "Disabling network adapter power-saving..." -ForegroundColor Yellow $properties = Get-NetAdapter -Physical | Get-NetAdapterAdvancedProperty