You may see Error Code 0x8004ded2 if you are trying to add a work or school account from an organisation that does not support OneDrive.
You may be able to resolve the issue by resetting OneDrive. You won't lose files or data by resetting OneDrive on your computer.
Reset OneDrive on a PC
-
Open a Run dialog by pressing Windows key and R.
-
Type %localappdata%/Microsoft/OneDrive/onedrive.exe /reset and press OK.
-
Manually launch OneDrive by going to Start, type OneDrive in the search box, and then click OneDrive.
Reset OneDrive on a Mac
-
Find OneDrive in your Applications folder.
-
Right-click OneDrive and select Show Package Contents.
-
Browse to the Contents > Resources folder.
-
Double-click ResetOneDriveApp.command (or ResetOneDriveAppStandalone.command).
-
Start OneDrive and finish the setup process.