From 7731c0dd71ac1c1582990e072710832e195ffd3e Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 29 Jul 2023 03:01:53 +0200 Subject: [PATCH] Add log messages --- scripts/Windows/Scripts/Context.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 7c41c0f1..b3d5fa57 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -375,6 +375,7 @@ class Context { $currentScheme = [regex]::Match((powercfg /GETACTIVESCHEME), "Power Scheme GUID: ([0-9a-f-]) ").Groups[1].Value; if ($currentScheme -ne $performanceScheme) { + Write-Information "Disabling Power Save mode"; $this.Set("Power Scheme", $currentScheme); powercfg /S 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c; } @@ -388,6 +389,7 @@ class Context { $originalScheme = $this.Get("Power Scheme"); if ($originalScheme) { + Write-Information "Reset power plan to original state"; powercfg /S $originalScheme; } }