How to find users who has "password never expired" feature set in Active Directory


hi,

i need find users active directory "password never expires" feature set. servers windows server 2008. there command use? please help.

thank you,

nikki.


nilakshi s. batuwitage

you can use dsquery * command line of domain controller:

 

dsquery * -filter "(&(objectcategory=person)(objectclass=user)(useraccountcontrol:1.2.840.113556.1.4.803:=65536))"

-----

 

this displays dn of users have bit set "password never expires" in their useraccountcontrol attribute.

 


richard mueller - mvp directory services


Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client