From 416facf2a0babe43b73a78dc35112ca5fd346885 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 25 Jun 2023 16:45:33 +0200 Subject: [PATCH] Return path to `RunOnce` key instead of item --- scripts/Windows/Scripts/Context.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/Context.ps1 b/scripts/Windows/Scripts/Context.ps1 index 0e570f4e..bb3205ff 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -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() {