Users with passwords not changed in last 365 days

HEEEEELLLLPPPP...Need to get a list of user accounts that have not had their passwords changed in 365 days.
LVL 2
BrianRBAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mike KlineCommented:
adfind (free tool from Joe Richards) is what I like for this http://www.joeware.net/freetools/tools/adfind/index.htm


adfind -default -binenc -f "&(objectcategory=person)(objectclass=user)(pwdlastset>={{LOCAL:2011/1/1}})" samaccountname pwdlastset -tdc

Thanks

Mike
0
BrianRBAuthor Commented:
hey thanks man, but it doesn't look like it's giving me what i want.  it gave me a list of all of the users and the date of their password change.   what i need is a list of people that have not changed.  we are doing all of our audit crap and that's one that's came up.  for the accts that have not changed, we need to go back and reset them.
0
Mike KlineCommented:
ahh ok what I did was give you anyone that has changed their password in the last year try

(pwdlastset<={{LOCAL:2011/1/1}})

less than equal to,  see if that substitution works.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

BrianRBAuthor Commented:
ok i've only been scripting for like less than a week.  will you please provide full cmd? :)
0
BrianRBAuthor Commented:
i am an idiot when it comes to this
0
BrianRBAuthor Commented:
Perfect!!  Thank you so much.
0
Mike KlineCommented:
Glad to help!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.