Forum Discussion

theyounngun's avatar
theyounngun
Copper Contributor
Mar 03, 2021
Solved

How to get event log from Server

Dear All,   Please help me. I've tried to create PS script in order to get event log when file is either deleted or created by somebody on ShareFile Server. It's working if they just create or dele...
  • farismalaeb's avatar
    Mar 03, 2021

    theyounngun 

    Hi

    You can check the schedule history and see what happens and how the task was executed, probably you will find something like Task Scheduler did not launch task "\MyScriptName" because instance "{317256a8-7ddf-4cf8-8267-90ab66c84907}" of the same task is already running.

    The Delete event log are listed one each another and I think that the Task Scheduler won't start the script as another instance is running.

    What you can do is add a small delay to the script and let the script read multiple events and send them in one report, instead of having each event sent alone

Resources