Code:
$sFilter = "(&(objectCategory=person)(objectClass=user)(msNPAllowDialin=TRUE)(pwdLastSet>=50)(!(userAccountControl:1.2.840.113556.1.4.803:=65536)))"


I'm trying to query AD for users that have "dial in" access, password last set 50 or more days previously, and exclude users that have "password never expires" flag. Everything works fine with the exception of "pwdLastSet". Do I need to do some type of date conversion and assign it to a variable?
_________________________
I could have made a neat retort but didn't, for I was flurried and didn't think of it till I was downstairs.
-Mark Twain