From 012bdbd2dbc2cd21dbbfb18ce2c721e7cdf37521 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 10 Aug 2024 15:20:36 +0200 Subject: [PATCH] Queue next user after configuration finished --- scripts/Windows/OS/Install.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 149cce02b..181130c8a 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -532,9 +532,12 @@ $null = New-Module { } } - if (-not (Get-UserConfig -UserName "$user" "microsoftAccount")) { + if (-not $msAccount) { net user "$user" /logonpasswordchg:yes; } + + Set-CurrentUser ($currentUser + 1); + continue; } Set-IsFinished $true;