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
Post a Comment