Fix non-functioning code
This commit is contained in:
parent
87d7aa36c0
commit
a1b8e9d9aa
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ class Context {
|
||||||
$userKey = Get-Item "HKCU:\";
|
$userKey = Get-Item "HKCU:\";
|
||||||
}
|
}
|
||||||
|
|
||||||
Push-Location $userKey;
|
Push-Location $userKey.PSPath;
|
||||||
$result = Get-Item "$userKey\Software\Microsoft\Windows\CurrentVersion\RunOnce";
|
$result = Get-Item "Software\Microsoft\Windows\CurrentVersion\RunOnce";
|
||||||
Pop-Location;
|
Pop-Location;
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue