I was wondering how I would create scripts to do the following:
 To check the file age across a Domain, and email the users which own files older than XX days with a list of those files in one email. (we use the emailaddress field when accounts are created).
 To check if an account wasn't used for XX days and send the account owner an email about their inactivty. Followed by a second script which checks if an account wasn't used for XX +7 days and emails and locks the account.
Anyone would have an idea how I would do this in a LUA script?
So far LUA is new to me and would appreciate some starting up help.