OneDrive Script error: How to fix it on Windows

Milan Stanojevic
by Milan Stanojevic
Deputy Editor
Download PDF
Affiliate Disclosure

  • After your turn on your computer, OneDrive can get a script error even if it is connected to your Microsoft account or not. The error is caused by a temporary bug in the login process.
  • The easiest way to deal with this script error is to unlink and link the account again. Or reinstall OneDrive completely. If not, proceed with the solutions in this article.
  • Still sticking with IE? Then check out the Internet Explorer section on our website for news and guides.
  • One error solved but another came up? See the OneDrive Troubleshooting Hub for help with any kind of issue.
OneDrive Script Error

Do you keep getting the OneDrive Script error? We let you know how to resolve it.

OneDrive is a cloud solution that works just like Google Drive, or Dropbox, for you to store your personal files securely, and access them anytime, anywhere, and from any device or browser.

Like every innovation, there’s bound to be a few troubleshooting issues.

Users of OneDrive have expressed concerns around the OneDrive Script Error on Windows. This also happened with their personal accounts as well as OneDrive for Business. This may occur for the following reasons:

  • Active scripting, meaning that ActiveX controls or Java programs on your network or computer are blocked. Programs such as antivirus, firewalls, or Internet Explorer can also be configured to block active scripting, ActiveX controls or Java programs.
  • Corrupted or outdated scripting engine

Note: it is important to understand the make and model of your computer, where you downloaded the OneDrive application from, as well as the browser you are using. If Internet Explorer is your default browser, know which version is installed on your computer.

If you’re getting the OneDrive Script error on Windows, here are solutions to help you resolve the issue.

How to fix OneDrive Script errors

Solution 1: Check your browser

If you’re on Internet Explorer and the OneDrive Script error issue arises, check these two things first:

  • That script errors are on multiple web pages because if they do, then the problem may be the pages themselves. You can also disable script debugging if you choose to ignore the errors. Don’t disable this function if the issue is on multiple sites.
  • That the problem is due to files or settings on your computer. You can use another user profile or browser, or even a different computer to view the pages that caused the OneDrive script error. If it doesn’t occur, then the issue is in files and settings on your computer.

There are three ways to resolve the problem with regards to Internet Explorer.

1. Verify Active Scripting, ActiveX controls, and Java programs are not blocked by your browser

If these are blocked, it can disrupt web page display. Reset your browser’s security settings to unblock the three by doing the following:

  • Launch Internet Explorer
  • Go to Tools
  • Click Internet Options
  • Click Security tab
  • Click Default Level
  • Click Ok

2. Remove temporary Internet files

Each time you open Internet Explorer, a local copy of your browsing history is stored in a temporary file. If these stored files folder becomes too big, you may have display issues. You can resolve this by clearing such files. Follow these steps:

  • Launch Internet Explorer
  • Go to Tools
  • Click Internet Options
  • Click General tab
  • Go to Browsing History
  • Click Delete
  • In Delete Browsing History dialog box, select Temporary Internet Files, Cookies, and History boxes, then click Delete
  • Click Close then Ok

3. Install the latest Internet Explorer service packs and software updates

Download and install the latest service packs and software updates if you already don’t have them as they contain updates that can fix the OneDrive Script Error issue. You can do this via Windows Update.

Note: in case the issue is on Chrome browser, check with the Chrome Support forum for troubleshooting assistance, otherwise you can try uninstalling, then reinstalling the browser to check if it will help.

You can also try downloading the OneDrive desktop app using Internet Explorer to check whether the OneDrive Script error issue persists.

If the script error is gone but you can’t access Onedrive on Windows, check this guide.

Solution 2: Perform Automatic Repair

Using Windows 10 installation media, you can use Automatic Repair to detect and fix any problems that prevent your computer from starting.

Such problems include drivers, program conflicts, malware, and memory.

However, if you do not have installation media, you can download and create Windows 10 installation media, then follow the steps below to perform the Automatic Repair.

  • Insert installation USB media
  • Boot Windows Technical Preview from the installation media
  • Under Windows setup page, select Language to install
  • Select Time and currency format
  • Select Keyboard or input method
  • Click Next
  • Click Repair your computer
  • Select Troubleshoot
  • Select Automatic Repair, then choose the operating system
  • A blue screen will appear with an option to choose from. Choose Troubleshoot
  • Select Advanced options
  • Choose Automatic Repair from Advanced boot option
  • Follow the prompt’s instructions

Does the issue persist? If it does, try the next solution.

Solution 3: Enable Active Scripting

Here’s how to execute this:

  • Right-click Start button
  • Select Run
  • Type inetcpl.cpl
  • Press Ok
  • Under Internet Options, select Security tab
  • Click Custom Level button

custom internet security settings

  • A Security Settings – Internet Zone dialog window will open
  • Locate Scripting
  • Go to Active Scripting

enable active scripting PC

  • Select Enable
  • A warning window will pop up asking you Are you sure you want to change settings for this zone
  • Click Yes
  • Under Internet Options, click Ok to close

Check whether you’re still having the OneDrive Script error issue.

Solution 4: Optimize OneDrive syncing with office files

To do this, verify that Use Office to work on files with other people at the same time option is unselected under the OneDrive app settings.

If you still get the OneDrive Script error issue, then the OneDrive sync is being interfered with possibly by the Office Upload cache. In this case, clear the cache for the Microsoft Office Upload Center files then check if this fixes the issue.

You can clear the cache by clicking Delete cached files or enabling Delete files from the Office Document cache when they are closed. However, a listing of open files remains in the cache and is stored on your computer.

Any luck after this? No worries, there are more solutions ahead.

Solution 5: Install critical Windows Updates

This will in turn update Internet Explorer, security definitions, and all the required drivers.

Here’s how to install Windows Updates:

  • Go to Start
  • In the search field, type Windows Updates
  • Click on Windows Updates Settings from the search results
  • Click Check for updates

check for updates

  • Install the latest Windows Updates

Solution 6: Check OneDrive system requirements for your computer

This helps you know if your computer meets the standard requirements for downloading and installing OneDrive.

For starters, OneDrive requires an active Microsoft account, so if you don’t have one, get signed up.

The desktop app requires the following:

  • An operating system of 32-64 bit version for Windows 10
  • A processor of 1.6 GHz or higher,
  • Memory of 1GB of RAM or more,
  • 1024 x 576 resolution (minimum)
  • High speed internet access, and
  • NTFS or HFS+ file systems.

Users with the built-in OneDrive need to be aware that the OneDrive Script error occurs whenever JavaScript of VBScript code on an app affected by internet connection settings has a problem.

The built-in OneDrive application uses Internet connection settings via Internet Explorer, so incorrect settings may affect the app, possibly leading to the OneDrive Script error.

We trust you’ve been assisted, but let us know if you have any further questions, issues, or additions to this article.

FAQ: Learn more about Onedrive and OneDrive for Business

  • What does script error mean?

Generally speaking, a script error means that a certain line of code contains an incorrect computer instruction. They generally appear on webpages or in web applications.

  • Can I have OneDrive personal and Onedrive for business?

Yes, both of them can be installed on the same computer and run simultaneously. With the personal OneDrive account, you can log in with your personal Microsoft account, while the OneDrive for Business app (part of Microsoft 365) can handle multiple Business accounts to stay in sync.

  • Does OneDrive scan for viruses?

Each file uploaded in the cloud is scanned automatically using the Windows Defender anti-malware engine, looking for known threats.

Editor’s Note: This post was originally published in October 2017 and has been since revamped and updated in May 2020 for freshness, accuracy, and comprehensiveness.