This commit is contained in:
Manuel Thalmann 2023-06-22 23:38:25 +02:00
parent 2c1ea94d97
commit 0f16e1af6c

View file

@ -17,7 +17,7 @@ function New-PersonalUser([Context] $context)
$users = Get-LocalUser | Select-Object { $_.Name };
Read-Host "Please hit enter once you're done...";
$user = Get-LocalUser | Select-Object { -not ($users -contains $_.Name) } | Select-Object -Last -1;
$user = Get-LocalUser | Select-Object { -not ($users -contains $_.Name) } | Select-Object -Last 1;
if ($user) {
break;