I need to do query which filters users with non expiring password setup.

I have something like this:


It works but show even disabled accounts and some system accounts like (HealthMailbox).

Can i somehow filter to show only active users?

I tried this but it doesnt works:


You need to exclude the correct flag for disabled accounts:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.