Fix non-functioning code

This commit is contained in:
Manuel Thalmann 2023-06-25 16:33:04 +02:00
parent a13b9f4cd1
commit 9fbdc118d4

View file

@ -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;
}