Powershell script does not run via Scheduled Tasks

后端 未结 18 958
南方客
南方客 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:31

    after trying a lot of time...

    task scheduler : powershell.exe -noexit & .\your_script.ps1

    be sure to put your script in this folder : windows\system32

    good luck !

提交回复
热议问题