Learning and Sharing
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
  • Home
  • Blog
  • Linux
  • macOS
  • Virtualization
    • VMware
    • VirtualBox
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server
  • Series
    • Symantec
    • Intune
    • Microsoft Azure
    • Powershell
    • VirtualBox
    • VMware
    • PowerShell Learning
    • Microsoft Graph
  • More
    • Auto Installation
    • AEC Installation
  • Contact
No Result
View All Result
No Result
View All Result

How to Fix OneDrive Java Script Error on Windows 11

September 16, 2023
in Blog, OneDrive, Windows 11
0
ADVERTISEMENT

Table of Contents

OneDrive Java Script Error on Windows 11

Are you encountering OneDrive JavaScript Error at startup on Windows PC? Users of OneDrive have noticed that the script error occurs with personal as well as OneDrive for Business accounts even if it is connected to your Microsoft account or not.

XBbnQ9XTqQLHT6G4jYf6tTp04IXCn0NqgiXHl03F9lRa3TQIhgf7WJFehJwn

The reasons for this error can be due to the OneDrive app’s JavaScript or VBScript code, or ActiveX controls or Java programs on your network/computer are blocked, corrupted/outdated scripting engine, or incompatibility with older versions of Internet Explorer.

Reset Internet Explorer Settings

The OneDrive app on Windows uses the same internet connection settings as Internet Explorer on your computer, which means that any corrupted or incorrectly configured settings in IE will cause OneDrive to malfunction. Resetting your IE will make the script error go away.

In Windows 10, reset Internet Explorer settings can be done in the Internet Options in Control Panel (inetcpl.cpl). But in Windows 11, that options has been removed.

Note Note: Click on images (screenshots) to show them at full size in popup.
dQmlIsf50Ly3ZmbrfVwVRWiO8hPjGUhTRmT5655ZSvVPkGBVEMG6Ywfk5Pra

Microsoft has been removed that option from GUI in the recent releases of Windows 11. But you can access the option using command line. The below command can be run by the Run box (Windows + R) or run in any command prompt (CMD, PowerShell, Terminal).

RunDll32.exe InetCpl.cpl,ResetIEtoDefaults

As you can see, now you can reset Internet Explorer settings as usual.

s6dNakYyz5CP4G76lrpEKzHxrOXycsh5hiKouzbzJP3iotW6mhQKIgV1cuBU

In our case, once the Internet Explorer Settings is reset. We can now open then sign in into OneDrive.

RdyOOK8iOJgXGU6BwkRKpAUdRLACsnDnBHQAffw1arFNTF9GHa665vsdsLhH

OneDrive White Box When Openning

In some cases, you would get the following error when opening the OneDrive app on Windows 11. A small white box is showing up when you click on the OneDrive icon instead of the login page.

vyIAvsKaATDwMKSqvaJYKnfR24UjjwqC9gRvYZgQd0tsAdG0TSh0XcxSSCug

So, we thought we just reinstall OneDrive. But when trying to reinstall, we get the message: OneDriveSetup.exe The file or directory is damaged and unreadable (Screenshot below).

R0SVfSB7NcujDKWtHFp0VDsBaIzZW2VnRFdLHju21Bcx8d5TM3NRzi2BpPMT

To fix the issue, you need to remove then reinstall the Microsoft OneDrive followed by below steps:

1️⃣ Right click on the Windows start icon then open Windows PowerShell (Terminal) as administrator.

2️⃣ Navigate to the SysWOW64 directory in the system drive using the below command:

cd C:\Windows\SysWOW64\

3️⃣ Run the file OneDriveSetup.exe with the /uninstall switch to remove the OneDrive from your computer.

OneDriveSetup.exe /uninstall

6️⃣ Wait a few seconds to the app gets removed. Once done, you’re ready for reinstalling OneDrive, using the command below to reinstall it:

OneDriveSetup.exe /install
EGbDT9npxKIeI4URfpmGz0AtukNznve3H5mfNU41zzs7uOJqFSBJwHPEVk2A

The installation starts automatically, and the app should be installed without any issue. You can go to the taskbar, click on the OneDrive icon then trying to sign in into it to verify it works.

hC6LHiMbm3XIG5qqxQrN7nuwZOlaUDA8dPdCS7JeiGOFPiBvhzjVWQl521rq
3Pl4JL9MxjTDQtkdREVbmD0inuiAJJH5x5XSY35j3XSw4S0Q57oxvUQXAldk

That’s it. We hope this post help you to solve the errors when opening OneDrive in Windows 11.

Not a reader? Watch this related video tutorial:

5/5 - (1 vote)
Previous Post

PowerShell Script Cannot be Loaded Because Running Scripts is Disabled on This System

Next Post

How to Fix Missing Control Panel Reset Internet Options in Windows 11?

Related Posts

Running Hyper-V and VMware Workstation on The Same Machine

August 15, 2024

How to Uninstall All Autodesk Products At Once Silently

July 29, 2024
Ftr5

How to Uninstall the Autodesk Genuine Service on Windows

July 29, 2024
Ftr19

How to Fix Windows Cannot Read the ProductKey From the Unattend Answer File in VirtualBox

July 26, 2024
Ftr25

How to Update Windows Terminal in Windows 10/11

July 26, 2024

How to Disable The Beep Sound in WSL Terminal on Windows

July 26, 2024

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Turn On uBlock Origin Extension in Chrome (2025)
  • Images Hidden Due To Mature Content Settings In CivitAI
  • Azure OpenAI vs Azure AI Hub, How to Choose the Right One for Your Needs

Categories

Stay in Touch

Discord Server

Join the Discord server with the site members for all questions and discussions.

Telegram Community

Jump in Telegram server. Ask questions and discuss everything with the site members.

Youtube Channel

Watch more videos, learning and sharing with Leo ❤❤❤. Sharing to be better.

Newsletter

Join the movement and receive our weekly Tech related newsletter. It’s Free.

General

Microsoft Windows

Microsoft Office

VMware

VirtualBox

Technology

PowerShell

Microsoft 365

Microsoft Teams

Email Servers

Copyright 2025 © All rights Reserved. Design by Leo with ❤

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory

No Result
View All Result
  • Home
  • Linux
  • Intune
  • macOS
  • VMware
  • VirtualBox
  • Powershell
  • Windows 10
  • Windows 11
  • Microsoft 365
  • Microsoft Azure
  • Microsoft Office
  • Active Directory