I'm trying to write a simple script which will tell me what AD Users are Disabled in a List.

```
<#
512 = Enabled
514 = Disabled
66048 = Enabled, password never expires
66050 = Disabled, password never expires
#>

Write-Host "Enter Full File Path for User List"
$UserListPath = Read-Host "Path"

$Users = Get-Content $UserListPath

foreach ($user in $users) {
    $UAC = Get-Aduser -Identity $user -Properties "useraccountcontrol" | Select-Object -ExpandProperty "useraccountcontrol" | Out-String

    If($UAC -eq "514"){
        Write-Host "$user Is Disabled" -ForegroundColor Red
    }

    elseif ($UAC -eq "66050") {
        Write-Host "$user Is Disabled" -ForegroundColor Red
    }
}

```