Remove unnecessary statements
This commit is contained in:
parent
63ccde7031
commit
5bc48ca478
1 changed files with 0 additions and 1 deletions
|
@ -17,7 +17,6 @@ function New-PersonalUser([Context] $context)
|
||||||
$users = Get-LocalUser | ForEach-Object { $_.Name };
|
$users = Get-LocalUser | ForEach-Object { $_.Name };
|
||||||
Write-Host "Following users exist already:"
|
Write-Host "Following users exist already:"
|
||||||
Write-Host $users;
|
Write-Host $users;
|
||||||
$users += @("WDAGUtilityAccount", "User");
|
|
||||||
Read-Host "Please hit enter once you're done...";
|
Read-Host "Please hit enter once you're done...";
|
||||||
|
|
||||||
$user = Get-LocalUser | Where-Object { -not ($users -contains $_.Name) } | Select-Object -Last 1;
|
$user = Get-LocalUser | Where-Object { -not ($users -contains $_.Name) } | Select-Object -Last 1;
|
||||||
|
|
Loading…
Reference in a new issue