diff --git a/scripts/Windows/Scripts/Users.ps1 b/scripts/Windows/Scripts/Users.ps1 index e8f0f47f..32b41924 100644 --- a/scripts/Windows/Scripts/Users.ps1 +++ b/scripts/Windows/Scripts/Users.ps1 @@ -9,7 +9,6 @@ $null = New-Module { Creates the configured users. #> function Start-ValhallaUserSetup { - [int] $current = Get-SetupOption $userOption; [string[]] $users = Get-Users; function Add-MicrosoftAccount { @@ -79,7 +78,7 @@ $null = New-Module { Rename-LocalUser $newUser $Name; } - for ($i = $current ?? 0; $i -lt $users.Count; $i++) { + for ($i = 0; $i -lt $users.Count; $i++) { Set-SetupOption $userOption $i; $name = $users[$i]; Write-Host "Creating personal user ``$name``…";