Powershell run job at startup with admin rights using ScheduledJob

后端 未结 3 849
一生所求
一生所求 2020-12-06 09:48

To ease some of my work I have created a powershell script which needs to :

  1. Run at startup.
  2. Run with admin rights as it has to write in c:\\program f
3条回答
  •  借酒劲吻你
    2020-12-06 10:16

    If it works, it's not a script problem. Assign it to the SYSTEM account or make a separate service account instead of the Gagan account shown. Make sure that service account has "Permission to run as batch job" in your local security policy.

提交回复
热议问题