Remove unnecessary code
This commit is contained in:
parent
6dba078a44
commit
bc8f73b185
1 changed files with 1 additions and 2 deletions
|
@ -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``…";
|
||||
|
|
Loading…
Reference in a new issue