Setting Delayed Startup for OneDrive on Windows
On Windows, both OneDrive and Clash have nearly the same startup time, causing OneDrive to get interrupted by Clash when it tries to log in automatically. This results in OneDrive getting stuck during the login process. At this point, I have to quit and restart OneDrive for it to log in properly, which is quite annoying. To solve this, I decided to set a 1-minute delay for OneDrive's startup after booting up using the Task Scheduler. Below is the process I followed to set it up.
The setup steps are as follows:
- First, open
Task Manager, switch toStartup appstab, right-click on OneDrive, and disable its startup option. - Next, right-click on the Start Menu button (Windows icon) on the taskbar and open
Computer Management. - In the left sidebar, click on
System Tools>Task Scheduler>Task Scheduler Library, and then selectCreate Basic Taskon the right. Enter a task name and description, then clickNext. - On the following page, choose
When I log on, then clickNext. - In the next step, select
Start a programand clickNext. - In
Program/script, browse or directly paste"C:\Program Files\Microsoft OneDrive\OneDrive.exe", and inAdd arguments, enter/backgroundto start OneDrive in silent mode. ClickNext. - Check
Open the Properties dialog for this task when I click Finishand clickFinish. - In the pop-up window, switch to the
Triggerstab, select the task you just created, and clickEditbelow. - Check
Delay task for, and choose30 secondsor1 minutefrom the dropdown. ClickOKtwice to save the changes. - To modify the delay time later, you can select the task, and on the right, click
Propertiesto open the settings window.
After completing the setup, restart the system to verify the effect. OneDrive will start only after Clash has fully launched, and it should log in successfully soon afterward.









