How do I run a PowerShell script when the computer starts?

前端 未结 15 1165
-上瘾入骨i
-上瘾入骨i 2020-11-30 19:24

I have a PowerShell script that monitors an image folder. I need to find a way to automatically run this script after the computer starts.

I already tried the follow

15条回答
  •  温柔的废话
    2020-11-30 19:49

    This worked for me. Created a Scheduled task with below details: Trigger : At startup

    Actions: Program/script : powershell.exe Arguments : -file

提交回复
热议问题