M
M
MADSMILEXD2016-02-09 15:28:48
PowerShell
MADSMILEXD, 2016-02-09 15:28:48

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

2 answer(s)
I
Iurii, 2016-02-09
@MADSMILEXD

Try specifying in the task scheduler in the program column - "powershell.exe",
and in the argument column "-command path\to\script\filename.ps1"

M
MrDywar Pichugin, 2016-02-09
@Dywar

1) How to make a script in PowerShell?
2) Run PowerShell scripts on schedule

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question