To fix a looping Onedrive, first quit Onedrive

if you try again and it loops, you'll need to remove the account from the local device


I first unlinked the Onedrive but that didnt work. I then entered this in command prompt: dsregcmd /status
I check that it said NO for azure AD joined


After that I disconnected the account doing this: setting>work/school account> disconnect. I restarted the device. After that I got back in and put that command in the cmd just to be sure it says NO. then I added the account back to the device. I restarted then added one drive


I am extra cautious with the commands but I am sure once will suffice