Fix resolving of the RunOnce
key
This commit is contained in:
parent
1e62f6f9de
commit
87d7aa36c0
1 changed files with 4 additions and 1 deletions
|
@ -80,7 +80,10 @@ class Context {
|
||||||
$userKey = Get-Item "HKCU:\";
|
$userKey = Get-Item "HKCU:\";
|
||||||
}
|
}
|
||||||
|
|
||||||
return Get-Item "$userKey\Software\Microsoft\Windows\CurrentVersion\RunOnce";
|
Push-Location $userKey;
|
||||||
|
$result = Get-Item "$userKey\Software\Microsoft\Windows\CurrentVersion\RunOnce";
|
||||||
|
Pop-Location;
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
[void] RegisterReboot() {
|
[void] RegisterReboot() {
|
||||||
|
|
Loading…
Reference in a new issue