I have a powershell script that monitors the folder for file generation and did some action if file is generated, basically a “Folder Monitor” using powershell script.
I’m triggering that script using command prompt and running it using Adminstrator Account.
But problem is that Powershell script is closing after 24 hrs from last logout. I have to login again restart the scripts to keep running.
Is there a solution so that I keep running it 24/7?
Intially I was triggering the script using non-admin user and later I updated the script to execute using highest level of permissions. But still I’m facing same issue.