From a1b8e9d9aa3cdecc11901398d6cb86e3938e2911 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 25 Jun 2023 16:33:04 +0200 Subject: [PATCH] Fix non-functioning code --- scripts/Windows/Scripts/Context.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }