From 4f3a7aff4bc2dbb5963209002d47476b16f02546 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 27 Aug 2024 03:24:37 +0200 Subject: [PATCH] Register MSAcc logon script early --- scripts/Windows/OS/Install.ps1 | 1 - scripts/Windows/Scripts/Users.ps1 | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 331f828b4..e204a8833 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -216,7 +216,6 @@ $null = New-Module { switch (Get-OneShotTask) { ([OneShotTask]::InitializeMSAccount) { Initialize-UserCreation; - Register-Setup -DefaultUser; } ([OneShotTask]::DisableUAC) { Disable-UAC; diff --git a/scripts/Windows/Scripts/Users.ps1 b/scripts/Windows/Scripts/Users.ps1 index 6d9a38ca8..12f886f60 100644 --- a/scripts/Windows/Scripts/Users.ps1 +++ b/scripts/Windows/Scripts/Users.ps1 @@ -89,6 +89,7 @@ $null = New-Module { if ($msAccount) { if (Test-Admin) { Write-Host "Preparing environment for creating MS Account"; + Register-Setup -DefaultUser; Enable-OneShotListener; Enable-UAC; Restart-Intermediate -CurrentUser;