Forum Discussion
Andres_Eduardo
Jan 30, 2022Copper Contributor
OneDrive does NOT start when I sign in to Windows 11
Hello, I have recently upgraded my PC to Windows 11. However, since then OneDrive doesn't start automatically when I sign in to Windows. I have already verified that: The option "Start OneDrive...
des_rima
Jan 24, 2024Copper Contributor
SOLVED!!!
Hello Andres_Eduardo
So simply adding an OneDrive shortcut to startup folder ain't gonna start it, I tried making it work through task scheduler but also gave me errors so I decided to force it using cmd and by saving that cmd file and placing it in the startup folder it will actually work.
Open a text file and write the below code in it and make sure you seperate the path of folder and .exe file by putting the path in " " and starting the second part with /MIN
Then save the text file as .cmd and put it in your startup folder. Press 🪟 + R to open Run
BradM403
Apr 17, 2025Copper Contributor
I can confirm that this works. You can even fine-tune the script a bit so that it checks the tasklist first see if it's running to avoid duplicate launches:
ech0 off
:: Check if OneDrive.exe is already running
tasklist /FI "IMAGENAME eq OneDrive.exe" | find /I "OneDrive.exe" >nul
if not errorlevel 1 (
echo OneDrive is already running.
exit
)
:: If not running, start OneDrive minimized
start /D "C:\Program Files\Microsoft OneDrive\" /MIN OneDrive.exe
exit