Remove unnecessary code

This commit is contained in:
Manuel Thalmann 2024-08-10 15:24:15 +02:00
parent 6dba078a44
commit bc8f73b185

View file

@ -9,7 +9,6 @@ $null = New-Module {
Creates the configured users. Creates the configured users.
#> #>
function Start-ValhallaUserSetup { function Start-ValhallaUserSetup {
[int] $current = Get-SetupOption $userOption;
[string[]] $users = Get-Users; [string[]] $users = Get-Users;
function Add-MicrosoftAccount { function Add-MicrosoftAccount {
@ -79,7 +78,7 @@ $null = New-Module {
Rename-LocalUser $newUser $Name; 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; Set-SetupOption $userOption $i;
$name = $users[$i]; $name = $users[$i];
Write-Host "Creating personal user ``$name``"; Write-Host "Creating personal user ``$name``";