Task Scheduler not working

Solved
Pseudo -  
madmyke Posted messages 52304 Registration date   Status Moderator Last intervention   -
Hello,

I'm trying to run a script via the task scheduler, but I feel like it's not completing the request... I can see that it starts the instance (scheduled every minute), but no result comes out.
I'm just running a basic PowerShell script that creates/overwrites a file on the desktop and writes "Test" in it, but I can't get the file.

Can you help me please?

2 answers

eka-de-my-well Posted messages 208 Registration date   Status Member Last intervention   39
 
Do you have this well in the action to be performed for your task?



Under the line "Program/script", you indicate the path to Powershell, so that it is the command interpreter to use. Normally, you should have the same path as in the image:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

For the line "Add arguments (optional)", you indicate the path to your script here.
1
Pseudo
 
Indeed, I was placing my script in Program/Script. So I put the path to PowerShell, and my script as an argument... but still no luck :s
Thanks for your help anyway. We're progressing slowly but surely :D
0
eka-de-my-well Posted messages 208 Registration date   Status Member Last intervention   39
 
Before sending you this, to be able to help you, I made a mini script that creates a folder on my desktop.
I created the scheduled task and it worked for me.

If you delete the file that your script creates on the desktop (if it doesn't contain anything important of course and if it already exists!), then if you run your script with the scheduler, does it still not work?
0