Go back to my example and change pwdLastSet to lastLogon and adjust the date variable to 45 days ago.