diff --git a/scripts/Windows/Scripts/PowerManagement.ps1 b/scripts/Windows/Scripts/PowerManagement.ps1 index 41484186..70ccadf9 100644 --- a/scripts/Windows/Scripts/PowerManagement.ps1 +++ b/scripts/Windows/Scripts/PowerManagement.ps1 @@ -26,7 +26,7 @@ $null = New-Module { [string] $path = $null; if ($UserKey) { - $path = "$($UserKey.PSPath)\$runOncePath"; + $path = Join-Path ($UserKey.PSPath) $runOncePath; } else { $path = $systemRunOncePath; }