Powershell script does not run via Scheduled Tasks

后端 未结 18 947
南方客
南方客 2020-12-02 23:12

I have a small script on my Domain Controller that is setup to email me via SMTP about the latest Security Event 4740.

The script, when executed manually, will run a

18条回答
  •  旧时难觅i
    2020-12-02 23:47

    In addition to advices from above I was getting error and found solution on following link http://blog.vanmeeuwen-online.nl/2012/12/error-value-2147942523-on-scheduled.html.

    Also this can help:

    In task scheduler, click on the scheduled job properties, then settings.

    In the last listed option: "if the task is already running, the following rule applies:" Select "stop the existing instance" from the drop down list.

提交回复
热议问题