From 2ebbf3b505e08c23a951f751f967fc5f149ff727 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 25 Jun 2023 15:19:48 +0200 Subject: [PATCH] Remove unnecessary statements --- scripts/Windows/OS/Upgrade.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/Windows/OS/Upgrade.ps1 b/scripts/Windows/OS/Upgrade.ps1 index 9a182423..a7930b33 100644 --- a/scripts/Windows/OS/Upgrade.ps1 +++ b/scripts/Windows/OS/Upgrade.ps1 @@ -11,7 +11,6 @@ function Invoke-Upgrade([Context] $context) { Write-Information "A Reboot is Required!"; Write-Information "Windows will reboot now and the installation will be continued automatically."; - $null = New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\RunOnce" -Name "PortValhalla" -Value "pwsh `"$($context.EntryPoint)`"" -PropertyType ExpandString; $context.Reboot(); exit; }