diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 15177738..9bec95ce 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -213,7 +213,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 7c54ef5b..02354235 100644 --- a/scripts/Windows/Scripts/Users.ps1 +++ b/scripts/Windows/Scripts/Users.ps1 @@ -88,6 +88,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;