Trying to upgrade to windows, 10 error 80004005, can't delete qmgr.dat files.

Currently I've had several failures when trying to upgrade to windows 10, gives me an error called 80004005 when I check the logs to see what went wrong. So I've tracked down I need to use the command prompt to mess with windows update, currently I'm stuck on step 3 of this guide https://support.microsoft.com/en-us/kb/971058 .  I'm trying it manually as the automatic fix didn't work. 

Delete the qmgr*.dat files. To do this, at a command prompt, type the following command, and then press Enter:

Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"

All it does is feed me a  "The system cannot find the path specified".

Higher resolution screenshot here 

http://postimg.org/image/gibxfuak3/full/

 

Question Info


Last updated June 21, 2019 Views 8,726 Applies to:

You probably do not have any such files. To find out, type this command:

dir  /s  /a  /b  /p  C:\qmgr*.dat

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

I think I do have the files. 

http://postimg.org/image/4tlg5tp39/full/

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

OK, you do have such files but they do not exist in the folder stated in the KB article. You must now delete them by explicitly typing the correct path.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

It sees the files when I run dir  /s  /a  /b  /p  C:\qmgr*.dat but when I copy+paste the directories to be deleted it acts like they were never there to begin with.  

Larger screenshot here. 

http://postimg.org/image/ntnh4yzpl/full/

May end up wiping my SSD and reinstalling, which is going to be a serious pain. Ideally I'd like to not do that, but it's looking a little bleak right now.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

May end up wiping my SSD and reinstalling, which is going to be a serious pain. Ideally I'd like to not do that, but it's looking a little bleak right now.

Not at all. What you see are minor problems. Here is the battery of tools you may need to use. I shall illustrate them with just one folder. Not all of them may be required.

takeown  /f  c:\Folder\qmgr*.dat  /r  (to seize ownership of the files)

cacls c:\Folder\qmgr*.dat  /e /g everyone:F (to remove restrictive NTFS permissions)

attrib -s -h -r  c:\Folder\qmgr*.dat (to remove any unwanted file attributes)

del  c:\Folder\qmgr*.dat  (to delete the files)

By the way, you can paste console screens directly into your reply like so:

  1. Right-click the black console screen.
  2. Click Mark.
  3. Mark the desired rectangle.
  4. Press Enter.
  5. Click somewhere in your reply.
  6. Press Ctrl+V to paste.

2 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Walruswithbenefits>dir  /s  /a  /b  /p  C:\qmgr*.dat
C:\ProgramData\Microsoft\Network\Downloader\qmgr0.dat
C:\ProgramData\Microsoft\Network\Downloader\qmgr1.dat
C:\Users\All Users\Microsoft\Network\Downloader\qmgr0.dat
C:\Users\All Users\Microsoft\Network\Downloader\qmgr1.dat

C:\Users\Walruswithbenefits>takeown  /f  c:\Folder\qmgr*.dat  /r
ERROR: The system cannot find the file specified.

C:\Users\Walruswithbenefits>cacls c:\Folder\qmgr*.dat  /e /g everyone:F
The system cannot find the path specified.

C:\Users\Walruswithbenefits>attrib -s -h -r  c:\Folder\qmgr*.dat
Path not found - C:\Folder

C:\Users\Walruswithbenefits>del  c:\Folder\qmgr*.dat
The system cannot find the file specified.

C:\Users\Walruswithbenefits>del C:\ProgramData\Microsoft\Network\Downloader\qmgr
0.dat
C:\ProgramData\Microsoft\Network\Downloader\qmgr0.dat
The process cannot access the file because it is being used by another process.

C:\Users\Walruswithbenefits>net stop bits
The Background Intelligent Transfer Service service is stopping..
The Background Intelligent Transfer Service service was stopped successfully.


C:\Users\Walruswithbenefits>net stop wuauserv
The Windows Update service is stopping.
The Windows Update service was stopped successfully.


C:\Users\Walruswithbenefits>net stop appidsvc
The Application Identity service is not started.

More help is available by typing NET HELPMSG 3521.


C:\Users\Walruswithbenefits>net stop cryptsvc
The Cryptographic Services service is stopping..
The Cryptographic Services service was stopped successfully.


C:\Users\Walruswithbenefits>del C:\ProgramData\Microsoft\Network\Downloader\qmgr
0.dat

C:\Users\Walruswithbenefits>takeown C:\ProgramData\Microsoft\Network\Downloader\
qmgr0.dat
ERROR: Invalid argument/option - 'C:\ProgramData\Microsoft\Network\Downloader\qm
gr0.dat'.
Type "TAKEOWN /?" for usage.

C:\Users\Walruswithbenefits>takeown /f C:\ProgramData\Microsoft\Network\Download
er\qmgr0.dat /r
ERROR: The system cannot find the file specified.

C:\Users\Walruswithbenefits>takeown C:\ProgramData\Microsoft\Network\Downloader\

qmgr1.dat
ERROR: Invalid argument/option - 'C:\ProgramData\Microsoft\Network\Downloader\qm
gr1.dat'.
Type "TAKEOWN /?" for usage.

C:\Users\Walruswithbenefits>takeown /f C:\ProgramData\Microsoft\Network\Download
er\qmgr1.dat /r
ERROR: The specified path is not a valid directory path.

C:\Users\Walruswithbenefits>



I have no idea what I'm doing wrong. 

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

takeown  /f  c:\Folder\qmgr*.dat  /r

-> "Folder" was a place holder. You must specifiy your own folder name!

The process cannot access the file because it is being used by another process.
-> You must run the command in Safe Mode. If the file is still locked then you must run the command in Windows Repair Mode.

takeown C:\ProgramData\Microsoft\Network\Downloader\qmgr0.dat

-> You omitted the /F switch.

takeown /f C:\ProgramData\Microsoft\Network\Downloader\qmgr1.dat /r
ERROR: The specified path is not a valid directory path.

-> You need to omit the /r switch (my mistake)

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Latest attempt, windows upgrade still restarts at 86% and feeds me a 80004005 error when I check the logs. 

Microsoft Windows [Version 6.1.7601]

Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

 

C:\Users\Walruswithbenefits>net stop bits

The Background Intelligent Transfer Service service is not started.

 

More help is available by typing NET HELPMSG 3521.

 

 

C:\Users\Walruswithbenefits>net stop wuauserv

The Windows Update service is not started.

 

More help is available by typing NET HELPMSG 3521.

 

 

C:\Users\Walruswithbenefits>net stop appidsvc

The Application Identity service is not started.

 

More help is available by typing NET HELPMSG 3521.

 

 

C:\Users\Walruswithbenefits>net stop cryptsvc

The Cryptographic Services service is stopping..

The Cryptographic Services service was stopped successfully.

 

 

C:\Users\Walruswithbenefits>dir  /s  /a  /b  /p  C:\qmgr*.dat

C:\ProgramData\Microsoft\Network\Downloader\qmgr0.dat

C:\ProgramData\Microsoft\Network\Downloader\qmgr1.dat

C:\Users\All Users\Microsoft\Network\Downloader\qmgr0.dat

C:\Users\All Users\Microsoft\Network\Downloader\qmgr1.dat

 

C:\Users\Walruswithbenefits>takeown  /f C:\ProgramData\Microsoft\Network\Downloa

der\qmgr0.dat

 

SUCCESS: The file (or folder): "C:\ProgramData\Microsoft\Network\Downloader\qmgr

0.dat" now owned by user "Walruswithbenef\Walruswithbenefits".

 

C:\Users\Walruswithbenefits>takeown  /f C:\ProgramData\Microsoft\Network\Downloa

der\qmgr1.dat

 

SUCCESS: The file (or folder): "C:\ProgramData\Microsoft\Network\Downloader\qmgr

1.dat" now owned by user "Walruswithbenef\Walruswithbenefits".

 

C:\Users\Walruswithbenefits>takeown  /f C:\Users\All Users\Microsoft\Network\Dow

nloader\qmgr0.dat

ERROR: Invalid argument/option - 'Users\Microsoft\Network\Downloader\qmgr0.dat'.

 

Type "TAKEOWN /?" for usage.

 

C:\Users\Walruswithbenefits>cacls C:\Users\All Users\Microsoft\Network\Downloade

r\qmgr0.dat

 

 NOTE: Cacls is now deprecated, please use Icacls.

 

 Displays or modifies access control lists (ACLs) of files

 

 CACLS filename [/T] [/M] [/L] [/S[:SDDL]] [/E] [/C] [/G user:perm]

        [/R user [...]] [/P user:perm [...]] [/D user [...]]

    filename      Displays ACLs.

    /T            Changes ACLs of specified files in

                  the current directory and all subdirectories.

    /L            Work on the Symbolic Link itself versus the target

    /M            Changes ACLs of volumes mounted to a directory

    /S            Displays the SDDL string for the DACL.

    /S:SDDL       Replaces the ACLs with those specified in the SDDL string

                  (not valid with /E, /G, /R, /P, or /D).

    /E            Edit ACL instead of replacing it.

    /C            Continue on access denied errors.

    /G user:perm  Grant specified user access rights.

                  Perm can be: R  Read

                               W  Write

                               C  Change (write)

                               F  Full control

    /R user       Revoke specified user's access rights (only valid with /E).

    /P user:perm  Replace specified user's access rights.

                  Perm can be: N  None

                               R  Read

                               W  Write

                               C  Change (write)

                               F  Full control

    /D user       Deny specified user access.

 Wildcards can be used to specify more than one file in a command.

 You can specify more than one user in a command.

 

 Abbreviations:

    CI - Container Inherit.

         The ACE will be inherited by directories.

    OI - Object Inherit.

         The ACE will be inherited by files.

    IO - Inherit Only.

         The ACE does not apply to the current file/directory.

    ID - Inherited.

         The ACE was inherited from the parent directory's ACL.

 

C:\Users\Walruswithbenefits>cacls C:\Users\All Users\Microsoft\Network\Downloade

r\qmgr1.dat

 

 NOTE: Cacls is now deprecated, please use Icacls.

 

 Displays or modifies access control lists (ACLs) of files

 

 CACLS filename [/T] [/M] [/L] [/S[:SDDL]] [/E] [/C] [/G user:perm]

        [/R user [...]] [/P user:perm [...]] [/D user [...]]

    filename      Displays ACLs.

    /T            Changes ACLs of specified files in

                  the current directory and all subdirectories.

    /L            Work on the Symbolic Link itself versus the target

    /M            Changes ACLs of volumes mounted to a directory

    /S            Displays the SDDL string for the DACL.

    /S:SDDL       Replaces the ACLs with those specified in the SDDL string

                  (not valid with /E, /G, /R, /P, or /D).

    /E            Edit ACL instead of replacing it.

    /C            Continue on access denied errors.

    /G user:perm  Grant specified user access rights.

                  Perm can be: R  Read

                               W  Write

                               C  Change (write)

                               F  Full control

    /R user       Revoke specified user's access rights (only valid with /E).

    /P user:perm  Replace specified user's access rights.

                  Perm can be: N  None

                               R  Read

                               W  Write

                               C  Change (write)

                               F  Full control

    /D user       Deny specified user access.

 Wildcards can be used to specify more than one file in a command.

 You can specify more than one user in a command.

 

 Abbreviations:

    CI - Container Inherit.

         The ACE will be inherited by directories.

    OI - Object Inherit.

         The ACE will be inherited by files.

    IO - Inherit Only.

         The ACE does not apply to the current file/directory.

    ID - Inherited.

         The ACE was inherited from the parent directory's ACL.

 

C:\Users\Walruswithbenefits>attrib -s -h -r C:\ProgramData\Microsoft\Network\Dow

nloader\qmgr0.dat

 

C:\Users\Walruswithbenefits>attrib -s -h -r C:\ProgramData\Microsoft\Network\Dow

nloader\qmgr1.dat

 

C:\Users\Walruswithbenefits>attrib -s -h -r C:\Users\All Users\Microsoft\Network

\Downloader\qmgr0.dat

Parameter format not correct -

 

C:\Users\Walruswithbenefits>del C:\ProgramData\Microsoft\Network\Downloader\qmgr

0.dat

 

C:\Users\Walruswithbenefits>del C:\ProgramData\Microsoft\Network\Downloader\qmgr

1.dat

 

C:\Users\Walruswithbenefits>del C:\Users\All Users\Microsoft\Network\Downloader\

qmgr0.dat

The system cannot find the path specified.

 

C:\Users\Walruswithbenefits>cd /d %windir%\system32

 

C:\Windows\System32>regsvr32.exe atl.dll

 

C:\Windows\System32>regsvr32.exe urlmon.dll

 

C:\Windows\System32>regsvr32.exe mshtml.dll

 

C:\Windows\System32>regsvr32.exe shdocvw.dll

 

C:\Windows\System32>regsvr32.exe browseui.dll

 

C:\Windows\System32>regsvr32.exe jscript.dll

 

C:\Windows\System32>regsvr32.exe vbscript.dll

 

C:\Windows\System32>regsvr32.exe scrrun.dll

 

C:\Windows\System32>regsvr32.exe msxml.dll

 

C:\Windows\System32>regsvr32.exe msxml3.dll

 

C:\Windows\System32>regsvr32.exe msxml6.dll

 

C:\Windows\System32>regsvr32.exe actxprxy.dll

 

C:\Windows\System32>regsvr32.exe softpub.dll

 

C:\Windows\System32>regsvr32.exe wintrust.dll

 

C:\Windows\System32>regsvr32.exe dssenh.dll

 

C:\Windows\System32>regsvr32.exe rsaenh.dll

 

C:\Windows\System32>regsvr32.exe gpkcsp.dll

 

C:\Windows\System32>regsvr32.exe sccbase.dll

 

C:\Windows\System32>regsvr32.exe slbcsp.dll

 

C:\Windows\System32>regsvr32.exe cryptdlg.dll

 

C:\Windows\System32>regsvr32.exe oleaut32.dll

 

C:\Windows\System32>regsvr32.exe ole32.dll

 

C:\Windows\System32>regsvr32.exe shell32.dll

 

C:\Windows\System32>regsvr32.exe initpki.dll

 

C:\Windows\System32>regsvr32.exe wuapi.dll

 

C:\Windows\System32>regsvr32.exe wuaueng.dll

 

C:\Windows\System32>regsvr32.exe wuaueng1.dll

 

C:\Windows\System32>regsvr32.exe wucltui.dll

 

C:\Windows\System32>regsvr32.exe wups.dll

 

C:\Windows\System32>regsvr32.exe wups2.dll

 

C:\Windows\System32>regsvr32.exe wuweb.dll

 

C:\Windows\System32>regsvr32.exe qmgr.dll

 

C:\Windows\System32>regsvr32.exe qmgrprxy.dll

 

C:\Windows\System32>regsvr32.exe wucltux.dll

 

C:\Windows\System32>regsvr32.exe muweb.dll

 

C:\Windows\System32>regsvr32.exe wuwebv.dll

 

C:\Windows\System32>netsh winsock reset

 

Sucessfully reset the Winsock Catalog.

You must restart the computer in order to complete the reset.

 

 

C:\Windows\System32>netsh winhttp reset proxy

 

Current WinHTTP proxy settings:

 

    Direct access (no proxy server).

 

 

C:\Windows\System32>net start bits

System error 1068 has occurred.

 

The dependency service or group failed to start.

 

 

C:\Windows\System32>net start wuauserv

System error 1084 has occurred.

 

This service cannot be started in Safe Mode

 

 

C:\Windows\System32>net start appidsvc

System error 1068 has occurred.

 

The dependency service or group failed to start.

 

 

C:\Windows\System32>net start cryptsvc

The requested service has already been started.

 

More help is available by typing NET HELPMSG 2182.

 

 

C:\Windows\System32>

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Please be more selective when posting output. Wading through 545 lines takes too much of my time and repeating the same error messages over and over again is rather inconsiderate.

takeown  /f C:\Users\All Users\Microsoft\Network\Downloader\qmgr0.dat

-> You must surround names with embedded folders with double quotes:

takeown  /f  "C:\Users\All Users\Microsoft\Network\Downloader\qmgr0.dat"

cacls C:\Users\All Users\Microsoft\Network\Downloader\qmgr0.dat

-> Same problem, also with the "del" command further down.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.