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?
 
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
 
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
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.