How to Fix Microsoft OneDrive Error Code 0x80070005

When trying to install or update the Microsoft OneDrive, you may often come across an error code – 0x80070005. The message reads – “OneDrive couldn’t be installed. Please try again. If you continue to have this problem, search the forums.“. This error could also show up when you are trying to create the usual Microsoft account or while creating a Work or School account.

The Microsoft OneDrive error 0x8007000 is also known as Access Denied error and may occur due to a missing file or registry permissions that help you install the OneDrive app. Fortunately, this error can be fixed using the possible solutions below. Let’s see how.

Method 1: Update Group Policy for work or school account

If you are working with an office or school account, you may often come across the Microsoft OneDrive error code – 0x8007000 while installing the Known Folder Move (KFM) in the Office or School OneDrive. The reason behind this error is the group policy that blocks the feature and hence, shows the error. Therefore, the group policy needs to be configured to fix the issue and hence, you must approach the IT admin of your school or office. Below are the steps to potentially fix the issue:

 

Step 1: Press the Win + R keys at the same time to open the Run command window.

Step 2: In the Run command search field, type gpedit.msc and press OK to open the Group Policy Editor.

 

Run Command Gpedit.msc Enter

 

Step 3: In the Group Policy Editor window, follow the below path:

 

User Configuration > Administrative Templates > Desktop

 

Group Policy Editor User Configuration Administrative Templates Desktop

 

Step 4: Now, go the right side of the pane and under the Setting column, double-click on Prohibit User from manually redirecting Profile Folders to open the Properties window.

Step 5: In the Prohibit User from manually redirecting Profile Folders Properties dialogue box, select the radio button next to Not Configured.

 

Prohibit User From Manually Redirecting Profile Folders Properties Settings Not Configured Select

 

If the Group Policy is turned on, then the IT administrator of your school or office , may not want you to configure the feature and may wish to continue with the policy enabled despite you trying to manually override it.

You should not see the error anymore and the issue should be resolved.

Method 2 – Delete Settings.dat and reboot PC

1 РFirst of all make sure there are no hidden files  on your PC.

2 – Now, open file explorer by pressing Windows and E key together


ADVERTISEMENT

3 – Now, go to the path given below by copying and pasting the path in address bar of file explorer

%systemdrive%\Users\%username%\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\AC\TokenBroker\Accounts

4 – Delete all the files

Screenshot 2022 12 06 095742 Min

5 – Now, go the path given below

%systemdrive%\Users\%username%\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Settings

6 – Now, Rename settings.dat file.

Screenshot 2022 12 06 095844 Min

7 – Now, Sign out of your PC and then sign back again.

Screenshot 2022 12 06 095932 Min


ADVERTISEMENT


Method 3: Check for Updates

If you have been trying to install the latest update for the OneDrive app and you encountered the error, then the first thing you must check if there’s any pending update in the Windows Update section. This is because not all updates can be done directly and instead should be done through the Windows Updates. Here’s how:

Step 1: Press the Win + I keys simultaneously to launch the Settings app.

Step 2: In the Settings window, go to Update & Security.

 

Settings Update & Security

 

Step 3: You are directed straight to the Windows Update page in the Settings window.

Now, go to the right side and click on Check for updates.

 

Check For Updates Settings Min

 

Step 4: Windows will now check or any pending updates and if there’s any update available for OneDrive, download the same.

Step 5: Now, press the Win + X keys together on your keyboard and select Run from the menu.

Step 6: It will open the Run command window.

Next, copy and paste the below path in the search field and hit Enter:

 

%localappdata%\Microsoft\OneDrive\update

 

Run Command Run The Command To Update Onedrive Enter

 

Step 7: Now, double-click on the OneDrive setup file (OneDriveSetup.exe) to initiate the installation process for the OneDrive.

 

Onedrive Update Folder Onedrivesetup.exe Double Click

 

You should not encounter the error – 0x80070005 anymore.

Method 4: Reset OneDrive App

One of the smartest way to fix the issue would be to reset the OneDrive app by running a command. Here’s how you can perform this method:

Step 1: Press the Win + X shortcut keys on your keyboard to open the context menu.

Step 2: Next, select Run from the menu to open the Run command box.

 

Win + X Run

 

Step 3: Copy and paste the below command in the Run command search bar and hit Enter:

 

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset

 

Run Command Type Commandd To Reser Onedrive Enter

 

Once the command has finished executing, try opening the OneDrive app from the Start menu and its should open normally without generating the error code – 0x8007000.

Method 5: Reinstall OneDrive App

You can also try uninstalling and re-installing the OneDrive app to check if it helps fix the issue. Follow the below instructions to uninstall the OneDrive app first:

Step 1: Press the Win + I hotkeys to open the Settings window.

Step 2: In the Settings window, click on Apps option.

 

Ms Store Launch Error Reset Settings Apps

 

Step 3: It takes you to the Apps & features section in the Settings window.

Now, navigate to the right side and under the Apps & features section, look for the Microsoft OneDrive app.

Select it and click on the Uninstall button below.

 

Settings Apps & Features Microsoft Onedrive Uninstall

 

Step 4: Next, confirm the action by pressing the Uninstall button again in the prompt.

 

Prompt Uninstall

 

Now, wait for the OneDrive app to be uninstalled completely and then install the app again to check if the Microsoft OneDrive error code – 0x8007000 is resolved.

Method 6: Windows Update Troubleshooter

Sometimes, simply running the built-in Windows Update troubleshooter helps fix the 0x80070005 error whwile installing OneDrive. Here’s how to run the troubleshooter:

Step 1: Press the Win + I keys simultaneously to launch the Settings app.

Step 2: As the Settings window opens, click on the Update & Security option.

 

Settings Update & Security

 

Step 3: In the next window, click on Troubleshoot on the left side of the pane.

 

Settings Update & Security Troubleshoot

 


ADVERTISEMENT

Step 4: Next, navigate to the right side of the pane, scroll down and click on the Additional troubleshooters.

 

Troubleshoot Additional Troubleshooters

 

Step 5: In the Additional troubleshooters window, under the Get up and running section, select Windows Update.

Click on Run the troubleshooter button.

 

Additional Troubleshooters Get Up And Running Windows Update Run The Troubleshooter

 

Now, wait for the troubleshooter to detect any issues and it will automatically repair any problems found.

Once the process is over, close the troubleshooter and try to launch the OneDrive app.

Method 7: Delete Files from OneDrive Folder

If none of the above method works, you can try deleting files and folders from the OneDrive app folder in the Windows Explorer, Follow the below instructions to check if it helps you fix the issue:

Step 1: Press the Win + E keys simultaneously on your keyboard to open the File Explorer window.

Step 2: Copy and paste the below path in the File Explorer address bar and hit Enter:

 

C:\Users\%userprofile%\AppData\Local\Microsoft\OneDrive

 

Step 3: Now, in the OneDrive app folder, select all the files and folders and hit Delete.

This will uninstall the OneDrive app.

 

File Explorer Navigate Onedrive Folder Select All Files And Folders Delete

 

Once done, re-install the app and try launching it now. It should open normally without the error code – 0x80070005.

Alternatively, you can also try fixing the Windows Update errors using the Microsoft’s manual troubleshooter that offers you a some basic steps that an possibly fix the OneDrive installation issue.