diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index eb3cae1c..0e570f4e 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -80,8 +80,8 @@ class Context { $userKey = Get-Item "HKCU:\"; } - Push-Location $userKey; - $result = Get-Item "$userKey\Software\Microsoft\Windows\CurrentVersion\RunOnce"; + Push-Location $userKey.PSPath; + $result = Get-Item "Software\Microsoft\Windows\CurrentVersion\RunOnce"; Pop-Location; return $result; }