Answer the question
In order to leave comments, you need to log in
Why is powershell script not executing with scheduler?
There is a small script, something like this:
Answer the question
In order to leave comments, you need to log in
Idiot mistake, I didn’t put powershell scripts in the scheduler for so long that I forgot how to do it, instead of running powershell and the script in it, I immediately launched the script as a bat file
Does the task run as "Hidden Task" ?
If yes, then uncheck the box so that the console window starts at startup.
In it you will see errors during execution. If a task says "Running" for a long time, it might actually be running, it just can't do what is asked of it.
The second option is to redirect the error output to a file.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question