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() {