From 972e1b65846b8ce6bb7e335545ef5030dadb4a4b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 25 Jun 2023 17:02:44 +0200 Subject: [PATCH] Fix incomplete command --- 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 ec25ebd5..185cb7d3 100644 --- a/scripts/Windows/Scripts/Context.ps1 +++ b/scripts/Windows/Scripts/Context.ps1 @@ -91,7 +91,7 @@ class Context { } [void] RegisterReboot([Microsoft.Win32.RegistryKey] $userKey) { - $null = Set-ItemProperty -Path $this.GetRunOnceKey($userKey).PSPath -Value "pwsh `"$($this.EntryPoint)`"" -Type "ExpandString"; + $null = Set-ItemProperty -Path $this.GetRunOnceKey($userKey).PSPath -Name $this.RunOnceName -Value "pwsh `"$($this.EntryPoint)`"" -Type "ExpandString"; } [void] RegisterNewUserReboot() {