diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index c431553b..04acd8ef 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -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 | Where-Object { -not ($users -contains $_.Name) } | Select-Object -Last 1; if ($user) { break;