0x80070005 アップデート

Windows Update を実行すると、0x80070005 (ACCESS DENIED) 「=アクセスが拒否されました」というエラーで失敗する場合があります。このエラーの原因と対処に関して紹介します。


スポンサード リンク

1.アプリがすでに起動している

Officeのアプリが起動している状態で Windows Updateを実行すると、0x80070005 で失敗する場合があります。すでに起動しているアプリで終了可能なものは全て終了させてから再度Windows Updateを実行してみてください。
0x80070005 で Windows Update による Office 2010 SP2 適用が失敗する

2.管理者としてログオンしてから Windows Update を再度実行する

アクセス権利が不足しているため、管理者で実行すると成功する可能性があります。管理者としてログオンしてから再度確認してください。
http://support.microsoft.com/kb/968003/ja

3.マルウェアスキャンを行う

マルウェアに感染している可能性があります。マルウェアスキャンを実行してみてください。
http://support.microsoft.com/kb/968003/ja

4.ログファイルで確認する

以上でも解決しない場合には、どこのレジストリのアクセス権が不足していて更新に失敗するのか、地道に調査する必要があります。
以下のログファイルにエラーの詳細が記録されています。どのレジストリでエラーが発生しているか確認し、レジストリエディタで修正します。
C:\Windows\WindowsUpdate.log

スポンサード リンク

[Windows 技術ドキュメント トップ]
[FAQ CENTER トップ]

更新履歴 [ 全て表示戻す ]
2017.07.28: 古くなった情報を削除。全面改訂。

2014.11.13: リンク切れの修正
2014.06.29: マイクロソフトのサポートページリンク追加
2011.02.28: 初出 (Win7 SP1失敗時の対処法として公開)

Windows Updateやストアアプリの更新中に発生する、エラー0x80070005 (または エラー80070005) の大まかな原因と、その対処方法を紹介したページです。

エラー80070005発生時のスクリーンショット

0x80070005 アップデート

▲クリックで拡大
エラーコードと共に、「不明なエラーが発生しました」「アクセスが拒否されました」「ACCESS DENIED」などのエラーメッセージが表示されます。

エラー0x80070005のよくある原因

  • サードパーティ製セキュリティソフトが Windows Update などの更新を邪魔している
  • 常駐ソフトがWindows Updateなどの更新を邪魔している
  • Windows Updateで書き換えられるファイルに適切なアクセス許可がない (別のプログラムがそのファイルを使用している)

エラー0x80070005が発生する場合、その多くがサードパーティ製セキュリティソフトが原因となっています。また、セキュリティソフトや常駐ソフトに限らず、何らかのプログラムがWindows Updateを邪魔しているケースがほとんどです。

対処方法

  • セキュリティソフトを停止する
  • 常駐ソフトや常駐サービスを停止する
  • その他、起動中のプログラムをできるだけ終了させる
    (Windowsをクリーンブートする)

常駐ソフト/サービスの停止方法(別ページ)

手順解説ページ

  • Windows 10のスタートアップの場所、設定&無効方法
  • Windowsをクリーンブートする方法

Windows Updateを邪魔しているプログラムが特定可能な場合は「スタートアップ」から該当プログラムを停止、特定できない場合は「クリーンブート」を行い、必要最小限のサービスのみを実行した状態でWindows Updateを行ってみます。

スポンサー リンク

まだエラーが解消しない場合

Windowsをクリーンブートした状態で以下ページの手順を実行してみます。
→ Windows updateができない・失敗をくりかえす時の一般的な対処方法

それでもエラーが解消しない場合

Windowsに新規ユーザーを作成し、新規ユーザーでログオンしてWindows Updateを行ってみます。

Windows Updateが成功した後は、以下の手順でユーザープロファイルの引っ越しを行い、(正しくデータ移行できた事が確認できたあとで) 古いユーザーは破棄しましょう。
→ 調子が悪い・重くなったWindowsを数分でサクッと安定化、高速化させちゃう裏技

チェックポイント

新規ユーザーでWindows Updateが成功した場合、既存のユーザープロファイルが破損している、もしくはレジストリキーの一部でアクセス許可が変更されていると思われます。エラーログを調べて原因を特定&修正するよりも、ユーザープロファイル引っ越しの方が何倍も早く、お手軽に復旧できます。

エラー0x80070005: その他の原因

以下のような症状の場合、Windows Update のコンポーネントやデータベースが壊れている事を疑います。

主な症状

  • Windowsを起動した直後にエラー0x80070005が発生する
  • Windows Updateの画面が表示されない、Windows Updateが起動しない
  • Windows Updateサービスの起動直後に「エラー0x80070005」が発生する
  • Windows標準のトラブルシューティングツールが実行できない

Windows Update のデータベースが壊れている場合のエラー0x80070005

0x80070005 アップデート

▲クリックで拡大
Windows Update画面は表示されず、通常の警告ダイアログでエラー0x80070005が表示されています。

この場合の対処方法

この場合、「SoftwareDistributionフォルダの削除と再作成」など、ちょっと特殊な手順が必要になります。

サイト内手順解説ページ

  1. 調子が悪くなった Windows Update を コマンドプロンプト で修正する方法
  2. Windows updateができない・失敗をくりかえす時の一般的な対処方法

上リンク「1.」を実行した後、リンク「2.」の中の「手順1.」の項目を2~3回、エラーが出なくなるまで繰り返す事でWindows Updateは正常な状態に戻るはずです。

その他: エラー0x80070005は大型アップデートで発生しやすい

通常のWindows Updateの時は問題が出ない場合でも、以下のような大型アップデートや、OSアップグレード時は「エラー0x80070005」は発生しやすくなります。

手元のPCでエラー0x80070005が発生したケース

  • Windows 10 のメジャーアップデート
  • Windows 8 → 8.1
  • Windows 7 → 7 SP1

いずれのケースでも、「常駐ソフトやセキュリティソフトの停止」で無事 アップデートが成功しました。

通常のWindows Updateでは常駐ソフトやセキュリティソフトを停止しなければならないケースはかなり減ってきているのですが、大きなアップデートを行う場合、(セキュリティソフトも含め) 余計な常駐プログラムは可能な限り停止しておいた方が失敗は少なくなります。

このページの情報は以上です。

おまけ:参考 (2014年追記分)

  • https://support.microsoft.com/kb/968003 (リンク切れ)
    エラー 0x80070005 が Windows Update で更新プログラムをインストールしようとすると表示される

マイクロソフトのサポートページには、かつてエラー 0x80070005は「適切なアクセス許可がない場合に、このエラーが表示されることがあります。」と書かれたページがありました。このリンクは過去何度かURLが変更になっており、現在はこれに該当するページは無い模様です。

Has the Windows 0x80070005 error stopped your work on its track? Do not worry. The 0x80070005 error is related to access permissions in Windows, sometimes encountered by users when they are trying to update their Windows or installing a new program, and they don't possess full access permission for certain files.

In this article, we've provided different ways to get around this problem. So, without further ado, here's how you can fix the 0x80070005 error code in Windows 10.

1. Give Yourself Full Permissions

As mentioned above, since the error code 0x80070005 is an inability to access Windows programs, the first method to try and solve it is to give yourself full administrative permissions from the Settings.

  1. Launch the Windows Run by hitting the Windows key + R, type in "C:\Users\USERNAME\AppData" in it, and click OK. Enter the drive where your Windows is installed in place of C: and username in place of USERNAME.
  2. Right-click on App Data and open the Properties.
  3. In the next window, go to the security tab and click on Edit.
  4. Click on Add.
  5. Now, type Everyone, click on Check Names, and finally, hit OK.
  6. Click on Everyone and allow Full control under Permissions for everyone. Click on OK.

That's it. Now reboot your system for the changes to take effect. You will not see the Windows update error 0x80070005 again.

2. Scan for Malware and Viruses

The error 80070005 can also be caused by malware or a virus, which can delete or alter your important system files, such as the Windows Registry. To be sure that your PC is not affected by malware, run the Windows Security, the free antivirus tool created by Windows to fight malware and virus.

Although, on rare occasions, the Windows Security might stop working, for most use cases it's a reliable app that can stand its own against any third-part antivirus.

After the scan, restart your PC and try to install the Windows updates; you shouldn't face any bugs now. However, if you still encounter the same error code 0x80070005, then don't lose heart. Jump to the next method and try out a clean boot.

3. Perform a Clean Boot

A clean boot is a way to identify applications that are causing problems in your Windows. It works by allowing your PC to start up with minimal programs and drivers, which then helps you figure the programs—if any—are causing a difficulty.

It differs from Windows safe mode, in that it provides you more control in choosing which programs to close down. Here's how you can get started with clean boot:

  1. Go to the Start menu search bar, type in 'msconfig,' and select the Best match.
  2. In the next dialog box, go to the Services tab, and check the Hide all Microsoft Services radio box and click on Disable All. After that, navigate to the Start-up tab, and click on Open Task Manager.
  3. From there, select any program that you believe is giving you trouble and click on Disable.
  4. Click on OK and close the dialogue box. Next, restart your PC to begin the clean boot.

When the PC restarts next time, run the application you were having trouble with. If the problem persists, you now know that it's not due to the programs that you disabled.

4. Run the Windows Troubleshooter

Windows troubleshooters are a series of integrated tools provided by Microsoft to solve small Windows problems, such as an update error, Bluetooth or audio issues, and so on.

It may be possible that a glitch in the Windows Update has led you to the Windows error code 0x80070005.

Follow the steps below and fix the Windows error 80070005:

  1. Press Win + X and click on Settings.
  2. Move to the Update & Security section and click on Troubleshoot.
  3. Now, click on Additional troubleshooters, and then, click on Windows Updates.
  4. Grant the required permissions and use the tool to fix this error.

click on additional troubleshooter

If, however, the tool couldn't fix the 'Access is Denied' error, then jump to the next method.

5. SFC (System File Checker)

The Windows System File Checker (SFC) is an application that helps users scan and fix their corrupt files, which might very well be the impediment to the Windows update installation in this case. Follow the mentioned commands to operate this utility tool:

  1. Go to the Start menu search bar, type in 'cmd,' and run the Command prompt as an administrator.
  2. Type SFC /scannow in the command prompt and hit Enter.

run sfc command to remove error 0x80070005

If the process is executed successfully, you should not see the Windows Access Denied error code message again.

6. Reset Permissions with SubInACL

SubInACL is a free command-line application that can help you change permissions for files, folders, registries, and other objects. In some situations, this method might very well do the trick. Follow the steps listed below to get rid of the error code 0x80070005 for good.

First off, download and install the SubInACL. Then, open a new Notepad file and type the following text in it:

Set OSBIT=32\nIF exist "%ProgramFiles(x86)%" set OSBIT=64\nset RUNNINGDIR=%ProgramFiles%\nIF %OSBIT% == 64 set RUNNINGDIR=%ProgramFiles(x86)%\nsubinacl /subkeyreg "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing" /grant="nt service\trustedinstaller"=f

Save the files in All Files as reset.cmd. After that, run the file as an administrator by right-clicking and selecting Run as Administrator. Then update the program, and delete the .cmd file.

7. Update Windows 10 Manually

If you encountered the error code 0x80070005 during a Windows update, then a manual update just might be the solution for you. To update your Windows manually, you'll be using the Windows Update Catalog. Although Windows updates are downloaded and installed automatically, sometimes glitches arise. And this where the Windows Update Catalog comes in. It is a free website by Microsoft that offers updates for all Windows Operating Systems.

You can download cumulative updates manually from there even if your Windows's auto-updates are not working, just as with the error code 0x80070005.

Follow the steps below to get started:

  1. Go to Settings > Update & Security > Windows Update.
  2. Select View Update History and note down or copy the Windows update version code. It will look like KB1234567.

Then, visit the Windows Updates Catalogue and paste the Windows update version code in the search bar. Then, click on the Download button, which will prompt a popup on your screen.

From the pop-up, click on the .msu file link to download it. After the download is complete, click on the .msu file to install the Windows update manually. Afterward, restart your system. Your Windows will work fine now. In this way, you can override the 0x80070005 error code by performing a manual update.

No More Windows Error Code 0x80070005

So this was our bag of tricks to get rid of error 080070005. However, if none of the above methods have worked so far, you can use the pulverizer of all major Windows problems: a Factory Reset. If you've walked through the all above methods, we believe you would've surely gotten the solution to your Windows 0x80070005 access is denied error code.