diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 9868b309e..0e18b547c 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -372,7 +372,7 @@ class Context { [void] PreventSleepMode() { $performanceScheme = "8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c"; - $currentScheme = [regex]::Match((powercfg /GETACTIVESCHEME), "Power Scheme GUID: ([0-9a-f-]) ").Groups[1].Value; + $currentScheme = [regex]::Match((powercfg /GETACTIVESCHEME), "Power Scheme GUID: ([0-9a-f-]+) ").Groups[1].Value; if ($currentScheme -ne $performanceScheme) { Write-Information "Disabling Power Save mode";