Fix OneDrive Sign-In Script Errors on Windows 7
Question details
The user needs to resolve a script error when signing in to the OneDrive desktop client with a business account on Windows 7.

- Product
- Microsoft OneDrive desktop sync client
- Device & OS
- Windows 7
- Scenario
- Connecting a business account to OneDrive for desktop file synchronization.
- Observed behavior
- A personal account can sign in, but the business account still fails after resetting OneDrive.
Have your business-account sign-in details available and note the exact script-error message. Windows 7 is unsupported by current OneDrive releases, so these checks may help isolate the issue but cannot restore supported operation on that operating system.
Reset the OneDrive client and retry business-account sign-in
Use this check if you have not completed a reset, or if OneDrive did not restart afterward. If a reset already failed to help, continue to the account and profile checks.
Press Windows + R, enter %localappdata%\Microsoft\OneDrive\OneDrive.exe /reset, and press Enter. Allow a few minutes for OneDrive to reset.
If the OneDrive icon does not return, press Windows + R, enter %localappdata%\Microsoft\OneDrive\OneDrive.exe, and press Enter. If Windows cannot find the file, this command does not match your installation location.
Open OneDrive from the notification area and follow the sign-in prompts using your work or school account. Record whether the same script error appears.
Test business-account access in the Microsoft 365 portal and a new Windows profile
Use these checks when a personal account works but the business account fails, especially after a reset.
Move OneDrive synchronization to a supported Windows version
This is the recommended long-term approach because Windows 7 and its legacy OneDrive environment are no longer supported.
Work on Downloaded Office Files with WPS Office
WPS Office is a free, lightweight alternative for editing documents, spreadsheets, and presentations downloaded from OneDrive. Its familiar interface and Microsoft Office format compatibility make migration straightforward. It does not repair OneDrive sign-in errors or replace the OneDrive sync client; check current WPS system requirements before installing.

Frequently Asked Questions
Why does my personal OneDrive account work while my business account fails?
Personal and business accounts can have different authentication requirements. Business accounts may also be subject to organizational access policies. Sign in at https://portal.office.com/ with the business account to check web access, and ask your administrator to investigate if it fails on a supported device.
What should I do if resetting OneDrive did not fix the script error?
Avoid repeating the reset indefinitely. Test the business account in the Microsoft 365 portal, select Sync from the document library, and try a new Windows user profile. Because Windows 7 is unsupported, also test the current OneDrive client on a supported Windows device.
Can I install the latest OneDrive client on Windows 7?
Current OneDrive releases do not support Windows 7. Use Microsoft's current system requirements to choose a supported operating system before downloading and installing the latest client.
Will resetting OneDrive delete my files?
Resetting OneDrive does not delete your files. It resets sync connections and settings, so you may need to reconnect accounts or select folders again. To reset the listed installation, press Windows + R and run %localappdata%\Microsoft\OneDrive\OneDrive.exe /reset.
Can WPS Office fix the OneDrive sign-in script error?
No. WPS Office is an alternative for editing Office files, not a repair tool for Microsoft's OneDrive authentication or synchronization. If browser access works and your organization permits downloads, download the needed file from OneDrive and open it in WPS Office on a supported device.





