Get file modified details
Took me 5 minutes to understand these 5 mere commands... So, I think this script is more of a personal one off type of script that maybe shouldn't be here. 1. Perform functions in Kaseya Working Directory not C:\ *facepalm*. 2. If you are going to upload the results of the cmd execution, delete the file from the agent. 3. There isn't really a reason to upload the "modified.txt" file and send the results in an email.. 4. I'd change the subject in the email to something more defined like "Last Modified Attribute for X agent with Y file executed on Z date and time", so that I know forever and always exactly what I sent myself.
Get file modified details has no comments.