Ignore automated accounts
This commit is contained in:
parent
88179df651
commit
706b78d9cf
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue