I am running OneDrive sync by creating scheduled tasks in Windows Task Scheduler. I have two tasks, one to start OneDrive's desktop app and the other kills it.
I am currently using taskkill
to get the job done and I am not proud of it. I am looking to see if there is a graceful way to exit/close/stop OneDrive from syncing.
Does anyone know of such a thing?