Task Scheduler not working
Solved
Pseudo
-
madmyke Posted messages 52304 Registration date Status Moderator Last intervention -
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?
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
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.
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.
Thanks for your help anyway. We're progressing slowly but surely :D
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?