When running a query such as
Get-ADUser -Filter * | select DistinguishedName, Enabled
the Enabled column has a lot of null values (I was expecting true or false only). Why is this?
Is there a better command to get the enabled/disabled status of user accounts?
This is on a 2008R2 domain.
Are you running this from an account that has the permissions to read these ADUser properties? Do you, perhaps, need to elevate the Powershell session? I ran this on my 7000+ account domain and all values were either true or false, no blanks.