Powershell script does not run via Scheduled Tasks

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

    In my case (the same problem) helped to add -NoProfile in task action command arguments and check checkbox "Run with highest privileges", because on my server UAC is on (active).

    More info about it enter link description here

提交回复
热议问题