Fix non-functioning code
This commit is contained in:
parent
a13b9f4cd1
commit
9fbdc118d4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue