Document

How to Fix Backup and Sync “failed to execute script main”

Today’s post is about how to fix the Google Drive Backup and sync error of “failed to execute script main”.

So, here’s the background. Yesterday morning, I woke up my computer from sleep mode. Google Drive should be running all the time to back up my files, but yesterday, the Backup and sync icon was disappeared from my taskbar.

I tried to open the program again, but got the following error:

Google Drive Backup and Sync Traceback Error

(A screenshot from Google Drive Help Community)

After clicked on “OK”, the “failed to execute script main” window popped up.

Google Drive Backup and Sync Failed to Execute Script Main

(A screenshot from Google Drive Help Community)

By following the suggestions that I found online, I tried:

  • Restarted the PC (didn’t work for me).
  • Downloaded the latest version of Google Backup and sync, uninstalled the former version, then installed the latest one (didn’t work for me).
  • Cleaned up any leftover install/Google Drive folders/subfolders/temp files, restarted the computer, reinstalled the program, and then ran Google Drive as administrator (didn’t work for me).

Fortunately, I opened Windows Security to have a look. Found Google.exe was been blocked. After allowed it manually, the problem was solved.

I totally relate to how software issues like this can drive you crazy, so I’ve put up some solutions that might be helpful to fix the “Backup and sync failed to execute script main” error.

Solution for Fixing Google Drive “failed to execute script main” on Windows 10, 8, 7, etc.: Check the Protection History of Your Antivirus Software

Windows Security shows a green tick and doesn’t prompt any message does not mean that it hasn’t blocked something. Some other antivirus protections might be the same, so this is the first solution you should check.

**Check both Windows Security and your antivirus software, in case you have one.

Steps:

  1. Open “Windows Security” > “Virus & threat protection” > “Protection history”.
  2. Look at the “App or process blocked” item, if you find something like googledrivesync.exe, GOOGLE.EXE, etc. you need to click on “Actions” > “Allow on device”.
  3. Reopen Google Backup and sync.

Allow Google Drive in Windows Security to Solve Failed to Execute Script Main

Follow These Steps If It Still Doesn’t Work

  1. Make sure you are using a Windows login account that has full administrator privileges.

Using Windows with Administrator Account

  1. Uninstall Backup and sync in Control Panel\Programs\Programs and Features
  2. Restart your computer.
  3. Clean up any leftover files of Backup and sync:
    1. Delete the folder and all subfolders found here: C:\Program Files\Google\Drive (Depending on where the installation failed, this may not be present)
    2. Delete the folder and all subfolders found here: C:\Users\YOUR-WINDOWS-USERNAME\AppData\Local\Google\Drive (Depending on where the installation failed, this may not be present)
    3. Clean up as much of your Windows Temp folder as possible: C:\Windows\Temp (Some files are unable to be deleted. You can just skip those).
  4. Clean out any partial registry keys:
    1. Press Windows Key + R
    2. type regedit then click OK to run
    3. Accept the request by the operating system to permit the command.
    4. Navigate to the key location: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Google\Drive (Depending on where the installation failed, this may not be present).
    5. If present, on the left side, right click the Drive entry and select delete.
  5. Download and install the latest version of Backup and sync from Google.

To our reader who’s reading this post: if you have tried other solutions that work for you, welcome to drop a comment below. It definitely can save someone’s day! 😊

Susanna

Susanna is the content manager and writer of Filelem. She has been an experienced editor and book layout designer for many years, and interested in trying and testing various productivity software. She is also a huge fan of Kindle, who has been using Kindle Touch for nearly 7 years and carrying Kindle almost wherever she goes. Not long ago the device was at the end of its life so Susanna happily bought a Kindle Oasis.

Related Articles

Back to top button