So I have a list of Active Directory users:
$users = Get-AdUser -Filter {Enabled -eq "True"}
What I want to do is group them based on their description since you have 3 possible descriptions in the whole user list.
However: I can't even seem to even use the Descriptionfield inside of a foreach:
foreach ($user in $users)
{
Write-Host $user.Name
Write-Host $user.Description
}
Their name shows but not their description.
Why is this?