Can run script manually, but not with task scheduler

Copper Contributor

Hi,

I've read quite a few posts regarding this issue and I've tried a whole bunch of tips, but I can't get the task scheduler to run my script. Could anyone please help me out here?

These are the setting I've got at the moment:

xparicon_0-1604311325353.pngxparicon_1-1604311356099.pngxparicon_2-1604311493047.png

(Arguments: -ExecutionPolicy Bypass -File C:\Users\insept\Desktop\TheRealMatrix.ps1 )

xparicon_4-1604311569316.png

 

xparicon_5-1604311591602.png

 

 

 

 

2 Replies

Hi @RL 

 

On task scheduler, what's the last run result code showing?

 

 

@HidMov 

Heya! I was testing this out locally on my own computer.

But when I moved the script to the server were I wanted to run it the task seems to run just fine.

 

I can see that I got the result code 4294770688 in the history log on my own computer. Haven't been digging deeper in to what exactly caused it not to run properly since it worked on the server.