Windows 10 – the latest and greatest iteration of the Windows Operating System – comes with an onboard OneDrive application which users can use to access their OneDrive storage spaces and OneDrive accounts. However, like many other aspects of Windows 10, the OneDrive app is far from perfect. One of the most common errors found on the OneDrive app is the script error which looks something like the image below.
The script error basically renders the onboard OneDrive application that comes with Windows 10 useless, and that can not only be a waste of resources but can also be pretty irritating as the average Windows 10 user quickly gets used to the onboard OneDrive app. A script error can be caused in the OneDrive app on Windows 10 mostly because of a problem with the OneDrive app’s JavaScript or VBScript code. Problems with the JavaScript or VBScript code of an application can either be caused by actual code-related problems or internet connection problems.
Fortunately, if you are suffering from a script error in the OneDrive app on Windows 10, the following are the two most effective solutions that you can use to fix the issue:
Solution 1: Make sure that Active Scripting is enabled
For the JavaScript and VBScript code of the OneDrive app to function properly, you must have Active Scripting enabled on your computer. Having Active Scripting disabled can give birth to a script error in the OneDrive app.
- Press the Windows Logo key + R to open a Run. Type “inetcpl.cpl” into the Run dialog and press the Enter key.
- When the Internet Options dialog appears, navigate to the Security. Click on Custom level…
- Locate the Scripting section in the window that appears and make sure that the Active Scripting option in this section is enabled. If Active Scripting is disabled, enable it and click on Yes when asked whether you really want to change settings for this zone.
- Click on OK and Restart your PC.
You should no longer receive a script error in the OneDrive app and the app should launch successfully after your computer boots up.
Solution 2: Reset your Internet Explorer settings
The onboard Windows 10 OneDrive application uses the same internet connection settings as the Internet Explorer app on your computer, which means that any corrupted or incorrectly configured Internet Explorer settings will cause OneDrive to malfunction. If that is the case, resetting your Internet Explorer settings will make the OneDrive script error go away.
It should be noted that by resetting the Internet Explorer settings on your computer, you revert the program to the state it was in when you first installed it. Also, a reset of Internet Explorer’s settings is completely irreversible. To reset Internet Explorer settings, you need to:
- Close all open Internet Explorer
- Open a new Internet Explorer
- Click on the Tools icon with a gear on it and Click on Internet options.
- Navigate to the tab titled Advanced and click on Reset.
- In the Reset Internet Explorer settings dialog box that pops up, click on Reset.
Once your Internet Explorer settings have been restored to their default values, click on Close and then click on OK.
Restart your computer so that the changes that you have made successfully take effect. The OneDrive script problem will be solved as soon as your computer boots up.
If resetting Internet Explorer’s settings to their factory defaults did not work (which is highly unlikely), you need to:
- Close all open Internet Explorer and open a new Internet Explorer window.
- Click on the Tools icon with a gear on it and Click on Internet options.
- Navigate to the tab titled Advanced and click on Restore advanced settings.
Follow the onscreen instructions to restore Internet Explorer’s advanced settings, checking the boxes to delete ALL settings along the way. Once you are done restoring Internet Explorer’s advanced settings, your OneDrive script error problem will definitely have been fixed.