Answer the question
In order to leave comments, you need to log in
How to run PowerShell script through Task Scheduler?
There is a file filename.ps1 via PCM> "Run with PowerShell" everything works, but I can't start it from the task.. the option with the console
>PowerShell path/to/script/filename.ps1 also does not work
Answer the question
In order to leave comments, you need to log in
Try specifying in the task scheduler in the program column - "powershell.exe",
and in the argument column "-command path\to\script\filename.ps1"
1) How to make a script in PowerShell?
2) Run PowerShell scripts on schedule
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question