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 essentially makes the onboard OneDrive application that comes with Windows 10, useless. Not only can this be a waste of resources, it can also be extremely irritating. The average Windows 10 user quickly acclimates to the onboard OneDrive app, so such errors can be frustrating. A script error in the OneDrive app on Windows 10 can predominantly occur due to issues with the app’s JavaScript or VBScript code. These problems with the JavaScript or VBScript code can be caused by either actual code-related issues or by complications with the internet connection.

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 Run. Type ‘inetcpl.cpl’ into the Run dialog and press the Enter key.
  2. When the Internet Options dialog appears, navigate to 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. Please 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 windows.
  2. Open a new Internet Explorer window.
  3. Click on the Tools icon that has a gear on it, then 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 windows and open a new Internet Explorer window.
  2. Click on the Tools icon, which has a gear on it, and then click on ‘Internet Options’.
  3. Please navigate to the ‘Advanced’ tab and select ‘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.