How can I set up Magento 2 cron jobs to work on a Windows server?
I can make the cron tasks run in a similar way to this or by calling the file directly (as far as I can tell this works).
However when trying to do extension installs Magento thinks that the cron process is not running (Magento docs on this issue). How can I make it know it is running?
This can be solved by running the correct command line task from the base magento install directory.
Make sure that your installs all use the same version of PHP and that the XSL extension is enabled otherwise this will cause issues as well.
If you want to run cron job directly without having to wait for the schedule, you can use
n98-magerun2 sys:cron:run <job name>
You can simply run the following command line:
php magento-installation-directory/bin/magento cron:run
You can also create cron job to run at a certain time interval if u dont want to run this command manually everytime