Powershell script does not run via Scheduled Tasks

后端 未结 18 946
南方客
南方客 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条回答
  •  醉酒成梦
    2020-12-02 23:23

    I had the same issue, while running the couple of scripts. When i execute it manually from task scheduler, The script was executing flawlessly. But it was not executing at the scheduled time automatically.

    The following resolution worked for me

    Find the location of the powershell exe , Right click and go to security options,Add the "Authenticated users" to the group or user names and give full control.

    Once this is done wait for the script to executed.

提交回复
热议问题