From 706b78d9cf4c88ae927c6e53ebe12bebdcbada8b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 23 Jun 2023 01:51:29 +0200 Subject: [PATCH] Ignore automated accounts --- scripts/Windows/OS/User.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/Windows/OS/User.ps1 b/scripts/Windows/OS/User.ps1 index 5236e6e6..053cda3e 100644 --- a/scripts/Windows/OS/User.ps1 +++ b/scripts/Windows/OS/User.ps1 @@ -15,6 +15,7 @@ function New-PersonalUser([Context] $context) "So sorry...")); $users = Get-LocalUser | Select-Object { $_.Name }; + $users += @("WDAGUtilityAccount"); Read-Host "Please hit enter once you're done..."; $user = Get-LocalUser | Where-Object { -not ($users -contains $_.Name) } | Select-Object -Last 1;