I need to query the entire domain find any user with accountExpires in 10 days (compare with actual date), then send an email to the users and his manager.
1-if the users have not an email address, log this user name and account expire date in a csv or txt file.
2-if users not have a manager, just send email to the user.
i have quest powershell tools installed, sow the script can user quest commandlet.
thanks for help