Return path to RunOnce
key instead of item
This commit is contained in:
parent
a1b8e9d9aa
commit
416facf2a0
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class Context {
|
|||
Push-Location $userKey.PSPath;
|
||||
$result = Get-Item "Software\Microsoft\Windows\CurrentVersion\RunOnce";
|
||||
Pop-Location;
|
||||
return $result;
|
||||
return $result.PSPath;
|
||||
}
|
||||
|
||||
[void] RegisterReboot() {
|
||||
|
|
Loading…
Reference in a new issue