From b210e1e84767fcc2ca26d7249e22495936c08fee Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 22 Jun 2023 23:39:49 +0200 Subject: [PATCH] Fix one more typo --- scripts/Windows/OS/User.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;