B
B
bigazzzz2018-10-02 13:18:27
PowerShell
bigazzzz, 2018-10-02 13:18:27

Why empty Enabled when requesting Get-ADUser?

I run the simplest command
Get-ADUser -Filter 'Enabled -eq $True'
Displays all users, including blocked ones. I check
Get-ADUser -Filter * | FT
5bb3457273469453248005.png
It turns out that users have an empty Enabled property, which is considered $True. Even if they are blocked. And for some, this property is affixed (only possible for system records and users who logged in locally to the server).
Help me understand why this is happening and how can I find blocked users
OS: Windows Server 2012R2

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bigazzzz, 2018-10-02
@bigazzzz

Understood. The problem was with the rights. You can only run this cmdlet with administrator rights (even if you are a domain administrator)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question