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

前端 未结 15 1148
-上瘾入骨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:38

    Try this. Create a shortcut in startup folder and iuput

    PowerShell "&.'PathToFile\script.ps1'"
    

    This is the easiest way.

提交回复
热议问题