Windows Update error 0x80070006

7

I've noticed that my Windows 10 is no longer updating itself. When I run the Settings app and issue an update command, this message appears.

There were some problems installing updates, but we'll try again later. If you keep seeing this and want to search the web or contact support for information, this may help: (0x80070006)

Of course, standalone updates install well. I have also been able to run a manual update from PowerShell and get Windows 10 to build 14393.970. Plus, Windows Defender keeps updating itself, so updating in general is possible.

I have tried running Microsoft Windows Update Troubleshooter. (The latest version from Microsoft website.) Nothing happened. I have also tried an equivalent from tenforums.com. Not only did it not fix my problem, it broke Windows Defender too. (System Restore came to rescue.)

windows-10
windows-update
windows-10-v1607
asked on Super User Apr 5, 2017 by (unknown user) • edited Apr 6, 2017 by (unknown user)

3 Answers

9

I have had this issue on my work PC and found that errors reporting an invalid handle can arise from Windows Update running in its own process.

You can try checking if Windows Update is running in its own process, and if it is, set it to share and reboot.

To check if it is in its own process, you can run sc query wuauserv in an elevated command prompt, and check what TYPE is reported. For example, one that is is set to run as its own process will look like this:

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>sc query wuauserv

SERVICE_NAME: wuauserv
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

To set it to shared (as it should be), run sc config wuauserv type= share, then reboot your PC (reboot is necessary because of some issue with SIDs not being correct without bringing down the shared process).

Once done, Windows Update should be working (provided there is nothing else wrong with it) and running sc query wuauserv should return a TYPE of 20 WIN32_SHARE_PROCESS.

answered on Super User Apr 15, 2017 by ldam
2

Lack of SeDebugPrivilege in wuauserv service RequiredPrivileges registry setting could be the reason of 80070006 error. Try to add SeDebugPrivilege at end of RequiredPrivileges list then restart wuauserv service. The setting is available at :

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv

I don't know the reason but in our network this privilege is set in most of Windows Server 2019 by default but not set in 2016 ones.

Be aware as discussed here SeDebugPrivilege is the highst access permission you could give to a user. Use it at you own risk.

answered on Super User Nov 25, 2020 by harsini • edited Apr 6, 2021 by harsini
-2

As Logan Dam mentioned this command in elevated (admin) command prompt:

sc config wuauserv type= share

Appears to at least get you past the error and allows windows updates to run. You may however encounter a similar error over and over again but in my experience on the third attempt (after noticing it was installing different updates each time) this happened to be the fix.

It's worth noting I got different errors each time and eventually I was prompted to uninstall a piece of software that was holding it up.

So if this command doesn't work the first time, give it a couple attempts and you may see results. Be sure to reboot after each time you run this command.

answered on Super User Jun 1, 2017 by M Seck • edited Jun 2, 2017 by M Seck

User contributions licensed under CC BY-SA 3.0