Folder Modified Date Task

PrasadWF 391 Reputation points
2022-09-28T00:20:32.443+00:00

Hi All,

I need to run task on 2016 windows server, task should check Folder current modified date and the folder last modified date , if the folder has not modified for 2 hours it should sent mail to concern team.

For Example - one folder named "MSFOL" - first it modified at 9/27/2022 5:00 PM , then same folder modified at 9/27/2022 6:30 PM, so it should compare the both the modified hours,
if the folder has not modified for 2 hours it should sent mail to concern team.

Task should run at interval of 60 mins

Thanks

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,278 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 32,246 Reputation points
    2022-09-28T14:45:51.093+00:00

    So write a Powershell script to do that. Use the Windows task scheduler to run the script every 60 minutes after you get it working.

    This is good reference/training document.

    https://www.sapien.com/books_training/Windows-PowerShell-4

    There are plenty of sites on the internet that provide code examples. Just do a Google/Bing search.

    0 comments No comments