Search found 2 matches

by Mavenerick
Wed Apr 22, 2020 8:41 pm
Forum: PowerShell
Topic: Script to run daily check file mod date and email out
Replies: 4
Views: 2240

Re: Script to run daily check file mod date and email out

I am not sure how to output the results to a file and send an email for the 2 situations I described. I tried doing an export-csv and that failed. The error was that no object was found. Get-Item C:\folder1\folder2*.* | Foreach $LastUpdateTime=$.LastWriteTime $TimeNow=get-date if (($TimeNow-$LastUpd...
by Mavenerick
Wed Apr 22, 2020 8:05 pm
Forum: PowerShell
Topic: Script to run daily check file mod date and email out
Replies: 4
Views: 2240

Script to run daily check file mod date and email out

I need to run a scheduled task that will trigger at 7am daily and search a folder for any files that have a modified date that’s changed in the last day or 24 hours. I’m stuck on whether what I’ve done so far is the best way to do this check and also I’m not sure how to get this to email out a file ...