From 8e7aeb9161931973deb5057bea2fbb3f8f44d649 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 ac4de18b..078f5ff0 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -203,6 +203,7 @@ $null = New-Module { switch (Get-OneShotTask) { ([OneShotTask]::InitializeMSAccount) { Initialize-UserCreation; + Register-Setup -DefaultUser; } ([OneShotTask]::DisableUAC) { Disable-UAC; @@ -568,7 +569,6 @@ $null = New-Module { New-ValhallaUser $name; if ($msAccount) { - Register-Setup -DefaultUser; logoff; } else { Restart-Intermediate;