Return path to RunOnce key instead of item

This commit is contained in:
Manuel Thalmann 2023-06-25 16:45:33 +02:00
parent a1b8e9d9aa
commit 416facf2a0

View file

@ -83,7 +83,7 @@ class Context {
Push-Location $userKey.PSPath; Push-Location $userKey.PSPath;
$result = Get-Item "Software\Microsoft\Windows\CurrentVersion\RunOnce"; $result = Get-Item "Software\Microsoft\Windows\CurrentVersion\RunOnce";
Pop-Location; Pop-Location;
return $result; return $result.PSPath;
} }
[void] RegisterReboot() { [void] RegisterReboot() {