Try following line in command prompt with OneDrive working:
wmic process get Caption, ExecutablePath, ParentProcessId, ProcessId
You will see that there is one space difference after ExecutablePath if you compare OneDrive to all other programs. Why is that and how to fix that? (Believe it or not but this is actually important for me).
Output:
NvBackend.exe C:\Program Files (x86)\NVIDIA Corporation\Update Core\NvBackend.exe 4168 5632
SetPoint.exe C:\Program Files\Logitech\SetPointP\SetPoint.exe 4168 5956
svchost.exe C:\WINDOWS\system32\svchost.exe 780 6092
OneDrive.exe C:\Users\John\AppData\Local\Microsoft\OneDrive\OneDrive.exe 4168 6120
avastui.exe C:\Program Files\AVAST Software\Avast\avastui.exe 5564 4076
I use Windows 10.