From 63ccde703103109facdb26dfe590df85165ebdb9 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 23 Jun 2023 12:34:12 +0200 Subject: [PATCH] Fix non-functioning code --- 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 384c4076..d2c8d9de 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -14,7 +14,7 @@ function New-PersonalUser([Context] $context) "Thus, you have to do it by yourself.", "So sorry...")); - $users = Get-LocalUser | Select-Object { $_.Name }; + $users = Get-LocalUser | ForEach-Object { $_.Name }; Write-Host "Following users exist already:" Write-Host $users; $users += @("WDAGUtilityAccount", "User");