Fix: OneDrive Java Script Error on Windows 10

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.

  1. Press the Windows Logo key + R to open a Run. Type “inetcpl.cpl” into the Run dialog and press the Enter key.
  2. When the Internet Options dialog appears, navigate to the Security. Click on Custom level…
  3. 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.
  4. 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:

  1. Close all open Internet Explorer
  2. Open a new Internet Explorer
  3. Click on the Tools icon with a gear on it and Click on Internet options.
  4. Navigate to the tab titled Advanced and click on Reset.
  5. 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:

  1. Close all open Internet Explorer and open a new Internet Explorer window.
  2. Click on the Tools icon with a gear on it and Click on Internet options.
  3. 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.


Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.
Back to top button

Expert Tip

Fix: OneDrive Java Script Error on Windows 10

If the issue is with your Computer or a Laptop you should try using Restoro which can scan the repositories and replace corrupt and missing files. This works in most cases, where the issue is originated due to a system corruption. You can download Restoro by clicking the Download button below.

Download Now

I'm not interested