From dbaccc0648d218384632180955cca545aefecf08 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 22 Aug 2024 11:10:39 +0200 Subject: [PATCH] Register setup script as admin --- scripts/Windows/OS/Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index f8def2ff..0d2c59f7 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -200,6 +200,7 @@ $null = New-Module { switch (Get-OneShotTask) { ([OneShotTask]::InitializeMSAccount) { Initialize-UserCreation; + Register-Setup -DefaultUser; } ([OneShotTask]::DisableUAC) { Disable-UAC; @@ -565,7 +566,6 @@ $null = New-Module { New-ValhallaUser $name; if ($msAccount) { - Register-Setup -DefaultUser; logoff; } else { Restart-Intermediate;