Make more descriptive prompt
This commit is contained in:
parent
745157dbc0
commit
3d10553d9a
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ function New-PersonalUser([Context] $context, [string] $userName)
|
|||
$users = Get-LocalUser | ForEach-Object { $_.Name };
|
||||
Write-Host "Following users exist already:"
|
||||
Write-Host $users;
|
||||
Write-Host "Create a user for ``$userName`` manually"
|
||||
Read-Host "Please hit enter once you're done...";
|
||||
|
||||
$user = Get-LocalUser | Where-Object { -not ($users -contains $_.Name) } | Select-Object -Last 1;
|
||||
|
|
Loading…
Reference in a new issue