We are seeing reports of problems in getting OneDrive to connect or sign in when you are using it on Windows 7. You may receive error code 0x8004de40 when trying to sign in to the OneDrive app after an update or password change.
Microsoft has changed the minimum security requirements for connecting to OneDrive to require TLS 1.2 capability, and this may not be present or may not be configured on a Windows 7 machine.
Please follow the steps below to resolve. Some or all may be required.
For more explanation please see: https://support.microsoft.com/en-us/topic/update-to-enable-tls-1-1-and-tls-1-2-as-default-secure-protocols-in-winhttp-in-windows-c4bd73d2-31d7-761e-0178-11268bb10392#bkmk_easy
Update OneDrive application Update your OneDrive application to the latest version by downloading and running the installer from here: Download the latest version of OneDrive for Windows.
Install this Windows Update (KB3140245) Download and install this particular Windows Update – select whether you need "Update for Windows 7" or "Update for Windows 7 for x64-based Systems" depending on whether your PC is 32-bit or 64-bit: http://catalog.update.microsoft.com/v7/site/search.aspx?q=kb3140245.
Run this Microsoft 'Easy Fix' Download and run this Microsoft easy fix to install the necessary registry keys which will update your PC's settings: https://download.microsoft.com/download/0/6/5/0658B1A7-6D2E-474F-BC2C-D69E5B9E9A68/MicrosoftEasyFix51044.msi
Manually add these registry entries
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client DWORD name: DisabledByDefault DWORD value: 0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client DWORD name: DisabledByDefault DWORD value: 0