Today i’ve been trying to understand why I couldn’t configure a scheduled task to run a Sitecore Powershell script. I found many useful articles which explained the configuration options for Sitecore scheduled tasks.

One notable detailed article can be found on the Sitecore Community Docs which reconfirmed my understanding of what triggers the scheduled tasks to run and how often the agent checks what tasks to be run.

I played around with these settings and still couldn’t get my scheduled task to run. I then read a post on stack overflow which gave me a good pointer.

I needed to check that the database agent was being initialised correctly, where you should see the following towards the start of the Sitecore logs: