Just adding an updated / flash answer for those interested ...
Create a file called rake.bat - be sure to save it with ANSI encoding (by default using Windows Notepad). You can save this file anywhere, but I put it in C:\ror\rake.bat
rake.bat
@call bundle exec rake %*
Now that you are creating the scheduled task, you can set it to run the .bat file, and the arguments are just what happens after the rake . Install it to run inside the directory of your choice. Whether logging in but not running with the highest privileges. Screenshots below for clarity; my rake task has a manager namespace, and the sync task itself:


source share