how to find accounts whose passwords will expire in future


all,

      there quick way find accounts created having password expire policy in effect. want identify accounts(whose password expire in future) , change settings 'account never expires'  to true

here updated filter 45 days ..

(&(objectcategory=person)(objectclass=user)(!useraccountcontrol:1.2.840.113556.1.4.803:=8388608)(!useraccountcontrol:1.2.840.113556.1.4.803:=65536)(pwdlastset>=129522420000000000)(pwdlastset<=129561300000000000))

update pwdlastset value based on requirement.  can convert time using w32tm /ntte command. 

 

w32tm /ntte 129522420000000000

149910 05:00:00.0000000 - 6/11/2011 12:00:00 am

 

w32tm /ntte 129561300000000000

149955 05:00:00.0000000 - 7/26/2011 12:00:00 am


santhosh sivarajan | mcts, mcse (w2k3/w2k/nt4), mcsa (w2k3/w2k/msg), ccna, network+ houston, tx

blogs - http://blogs.sivarajan.com/
articles - http://www.sivarajan.com/publications.html
twitter: @santhosh_sivara - http://twitter.com/santhosh_sivara
posting provided no warranties,and confers no rights.


Windows Server  >  Directory Services



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2