3

I have created one script and its stored on my local. I want to schedule this python script on a daily basis.

I was trying using Task Scheduler but somehow its not working when we select "Run whether user is logged on or not".

Please note its working when we choose "Run only when user is logged on".

failure:

enter image description here

General Tab:

enter image description here

Triggers Tab:

enter image description here

Action tab:

enter image description here

TylerH
  • 20,799
  • 66
  • 75
  • 101

1 Answers1

0

Try these fixes

1. Check if Task Scheduler is actually running

  • Click Start, type services.msc in the search field box, and hit Enter. enter image description here
  • Look for Task Scheduler. enter image description here
  • Right-click it, then select Properties.
  • Under Startup Type list, select Automatic. enter image description here
  • Click Start, select Apply and Ok.

A good solution is to check that the Task Scheduler is actually running by following the steps above. If you’re still not having luck, continue with the next fix.

2. Run a System File Checker scan

  • Click Start, and type CMD in the search field box.

  • Select Command Prompt.

enter image description here

  • Right-click, and select Run as Administrator.

enter image description here

  • Type sfc/scannow, and hit Enter.

  • Restart your PC.

A System File Checker scan checks or scans all protected system files, and then replaces the incorrect versions, with the genuine, correct Microsoft versions. If the Task Scheduler still isn’t running the Python script, try the next solution.

3. Restart Task Scheduler

  • Click Start, type services in the search field box, and press Enter.
  • Right-click Services, and click Run as Administrator.

enter image description here

  • Give the necessary password or permissions or click Continue.
  • Right-click the Task Scheduler service, and select Restart.

4. Change Service Configuration

  • Click Start, and type CMD in the search field box.
  • Choose the Command prompt.
  • Right-click, and select Run as Administrator.

enter image description here

  • Choose to continue at the UAC prompt.

  • In the console window, type the following command:

    SC Comfit schedule start= auto

  • If you get the reply [SC] ChangeServiceConfig SUCCESS, the service will be changed to automatic once you reboot.

If the issue still persists then you can create a new user profile then change settings to administrator privileges, and check if the issue of Task Scheduler, not working persists.

If the issue goes away, then it may mean your other user profile is corrupted.