-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Desktops
- Desktop Operating Systems and Recovery
- 0x80070005 after factory reset

Create an account on the HP Community to personalize your profile and ask a question
01-01-2017 10:26 AM - edited 01-01-2017 10:42 AM
Hi all, Dave here. i did a factory reset on a friends computer, it was badly infected with malware, spyware, ransomware, ect, ect. older person with limited knowledge/experience. I spent 3 days trying to repair, but the registry was corrupt, and i did not fix it. I did the f11 factory reset, then found that windows 7 home , would not update. I tried numerous procedures
mentioned at microsoft when i researched the problem. I have 8 sff hp 8000's and have done the same with them with little problems getting them updated. From what i have read so far, it is an access denied issue. i have followed many posts, trying to resolve, but can't get all of the procedures to run. i have installed internet explorer 11, and it has been downhill from there. i have installed spring roll ups, ran sfc /scannow, followed hp posts, microsoft posts, all negative. I have been in dos, on many occasions attempting repairs. i have run access check, sub in acl, no changes. getting to wits end. no I do not want to update it to windows 10, the owner hates windows 10, and wants to stay with win 7 as long as possible.
Product name: p7-1127c Product number: QU046AA#ABC Windows 7 Home Premium 64-bit Service Pack 1. the only software that is not "stock" is AVG free antivirus. I have malwarebytes, adwcleaner on a usb stick. No viruses or malware. ran windows a/v, clean. I gave up when i got "subinac 1 is not recoginized as an internal or external command".
If anybody can point me in the right direction I would appreciate it.
added note. it appears that i can install kbxxxxxx's manually
Solved! Go to Solution.
Accepted Solutions
01-05-2017 05:47 PM
a friend sent me this, after i bugged him for a few hours.
@ECHO OFF
:Selection
CLS
ECHO 1.Stop Services
ECHO 2.Delete QMGR files
ECHO 3.Rename software distribution folders
ECHO 4.Reset BITS and WU security descriptors
ECHO 5.Re-Register DLL's
ECHO 6.Reset Proxy
ECHO 7.Reset Winsock
Echo 8.Start Services
ECHO 9.Exit
ECHO.
CHOICE /C 123456789 /N /M "Please choose an option"
IF ERRORLEVEL 9 GOTO End
IF ERRORLEVEL 8 GOTO StartServ
IF ERRORLEVEL 7 GOTO ResetWinsock
IF ERRORLEVEL 6 GOTO ResetProxy
IF ERRORLEVEL 5 GOTO ReRegDLL
IF ERRORLEVEL 4 GOTO ResetSecDescr
IF ERRORLEVEL 3 GOTO RenSoftDist
IF ERRORLEVEL 2 GOTO DelQMGR
IF ERRORLEVEL 1 GOTO StopServ
:ResetProxy
netsh winhttp reset proxy
pause
GOTO Selection
:ResetWinsock
netsh winsock reset
pause
GOTO Selection
:StartServ
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
pause
GOTO Selection
:ReRegDLL
cd /d %windir%\system32
regsvr32.exe atl.dll /s
regsvr32.exe urlmon.dll /s
regsvr32.exe mshtml.dll /s
regsvr32.exe shdocvw.dll /s
regsvr32.exe browseui.dll /s
regsvr32.exe jscript.dll /s
regsvr32.exe vbscript.dll /s
regsvr32.exe scrrun.dll /s
regsvr32.exe msxml.dll /s
regsvr32.exe msxml3.dll /s
regsvr32.exe msxml6.dll /s
regsvr32.exe actxprxy.dll /s
regsvr32.exe softpub.dll /s
regsvr32.exe wintrust.dll /s
regsvr32.exe dssenh.dll /s
regsvr32.exe rsaenh.dll /s
regsvr32.exe gpkcsp.dll /s
regsvr32.exe sccbase.dll /s
regsvr32.exe slbcsp.dll /s
regsvr32.exe cryptdlg.dll /s
regsvr32.exe oleaut32.dll /s
regsvr32.exe ole32.dll /s
regsvr32.exe shell32.dll /s
regsvr32.exe initpki.dll /s
regsvr32.exe wuapi.dll /s
regsvr32.exe wuaueng.dll /s
regsvr32.exe wuaueng1.dll /s
regsvr32.exe wucltui.dll /s
regsvr32.exe wups.dll /s
regsvr32.exe wups2.dll /s
regsvr32.exe wuweb.dll /s
regsvr32.exe qmgr.dll /s
regsvr32.exe qmgrprxy.dll /s
regsvr32.exe wucltux.dll /s
regsvr32.exe muweb.dll /s
regsvr32.exe wuwebv.dll /s
pause
GOTO Selection
:ResetSecDescr
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
pause
GOTO Selection
:RenSoftDist
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
pause
GOTO Selection
:DelQMGR
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
pause
GOTO Selection
:StopServ
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
pause
GOTO Selection
:End
01-02-2017 09:04 AM
Happy New Year to you! Let me take a moment to thank you for posting on the HP Support Forums.
I understand that you have an HP Pavilion p7-1127c Desktop PC with Windows 7. Post reinstalling Windows 7, you are unable to perform Windows updates. You get an error code 0x80070005. I appreciate the steps you have performed and have certainly done a good job.
I did some online hunting and found two third party links which post a solution. This seems to have to have resolved the issue for few customers. I'm not sure if you have tried the steps already but you may take a look.
NOTE: These are third party links and I suggest you to ignore any ads. No not subscribe to any paid services if prompted.
Hope this helps. Let me know how it goes. Cheers! 🙂
01-02-2017 04:13 PM
Hi MKazi, thnk you for your response. when i started that post, i was not in the best of spirits, I aplogize for the lack of information. I actually started this quest here, at this forum. i searched the error, and was directed to a page where i did the 2 suggestions. They didn't help out, so I posted a new one, as my problem seems to be a bit different. I have 3 standalone installers on my desktop already.
i have successfuly installed: kb3138612
3135445
3112343
3083324
3075851
3145739
3168965
3083710
3164033
3109094
3078601
windows update agent 7.6.7600.320.
all installed with no issues. I still can't get update to do anything, checking for updates for 48hrs, or more.
net user administrator active=yes, was done at the beginning. I am the only user, account wise. There is no login password set. uac is at lowest setting. I tried suggestions from microsoft, when i searched their database. I have been in the "bios" but didn't see any security devices, or passwords set up. I have 8 surplus sff 8000 pro's. i have factory reset them, and had no issues. They have tpmodules, I didn't see anthing in this one about trusted platform module. it has uefi "bios". Any other info required? should i check the cbs logs?
Thanks for any advice in advance, Dave
01-03-2017 08:04 AM
You are welcome Dave. 🙂
If the Windows update feature is not really updating and is stuck on checking then an alternate you could consider y=using the HP Support Assistant program. The HP Support Assistant will also check and download Windows updates for your PC.
Let me know if this helps. Thank you! 🙂
01-05-2017 05:47 PM
a friend sent me this, after i bugged him for a few hours.
@ECHO OFF
:Selection
CLS
ECHO 1.Stop Services
ECHO 2.Delete QMGR files
ECHO 3.Rename software distribution folders
ECHO 4.Reset BITS and WU security descriptors
ECHO 5.Re-Register DLL's
ECHO 6.Reset Proxy
ECHO 7.Reset Winsock
Echo 8.Start Services
ECHO 9.Exit
ECHO.
CHOICE /C 123456789 /N /M "Please choose an option"
IF ERRORLEVEL 9 GOTO End
IF ERRORLEVEL 8 GOTO StartServ
IF ERRORLEVEL 7 GOTO ResetWinsock
IF ERRORLEVEL 6 GOTO ResetProxy
IF ERRORLEVEL 5 GOTO ReRegDLL
IF ERRORLEVEL 4 GOTO ResetSecDescr
IF ERRORLEVEL 3 GOTO RenSoftDist
IF ERRORLEVEL 2 GOTO DelQMGR
IF ERRORLEVEL 1 GOTO StopServ
:ResetProxy
netsh winhttp reset proxy
pause
GOTO Selection
:ResetWinsock
netsh winsock reset
pause
GOTO Selection
:StartServ
net start bits
net start wuauserv
net start appidsvc
net start cryptsvc
pause
GOTO Selection
:ReRegDLL
cd /d %windir%\system32
regsvr32.exe atl.dll /s
regsvr32.exe urlmon.dll /s
regsvr32.exe mshtml.dll /s
regsvr32.exe shdocvw.dll /s
regsvr32.exe browseui.dll /s
regsvr32.exe jscript.dll /s
regsvr32.exe vbscript.dll /s
regsvr32.exe scrrun.dll /s
regsvr32.exe msxml.dll /s
regsvr32.exe msxml3.dll /s
regsvr32.exe msxml6.dll /s
regsvr32.exe actxprxy.dll /s
regsvr32.exe softpub.dll /s
regsvr32.exe wintrust.dll /s
regsvr32.exe dssenh.dll /s
regsvr32.exe rsaenh.dll /s
regsvr32.exe gpkcsp.dll /s
regsvr32.exe sccbase.dll /s
regsvr32.exe slbcsp.dll /s
regsvr32.exe cryptdlg.dll /s
regsvr32.exe oleaut32.dll /s
regsvr32.exe ole32.dll /s
regsvr32.exe shell32.dll /s
regsvr32.exe initpki.dll /s
regsvr32.exe wuapi.dll /s
regsvr32.exe wuaueng.dll /s
regsvr32.exe wuaueng1.dll /s
regsvr32.exe wucltui.dll /s
regsvr32.exe wups.dll /s
regsvr32.exe wups2.dll /s
regsvr32.exe wuweb.dll /s
regsvr32.exe qmgr.dll /s
regsvr32.exe qmgrprxy.dll /s
regsvr32.exe wucltux.dll /s
regsvr32.exe muweb.dll /s
regsvr32.exe wuwebv.dll /s
pause
GOTO Selection
:ResetSecDescr
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
pause
GOTO Selection
:RenSoftDist
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
pause
GOTO Selection
:DelQMGR
Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
pause
GOTO Selection
:StopServ
net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc
pause
GOTO Selection
:End
01-06-2017 11:46 AM - edited 01-06-2017 11:47 AM
Hi @tcscanada,
Thanks for replying. I appreciate your time and efforts,
As I understand you have tried all the steps and still having the same issue, Don't worry as I have got few other steps to help you with this,
Here's a related post which seems to have helped others - Click here (Scroll down to the Neuro_Jim replied on July 31, 2009) and follow the steps suggested.
I hope this helps, let me know if you need any further assistance, I'll be more than happy to help.
Thanks & Regards,
Jeet_Singh
I am an HP Employee
01-21-2017 12:50 PM
Hi @tcscanada,
Thank you for the update,
I appreciate your time and efforts,
I'm glad you found the solution you were looking for.
Thanks for taking the time to let the community know about the solution
You've been great to work with and it has been a genuine pleasure interacting with you.
I hope both you and your product works great and remain healthy for a long time 😉
To simply say thanks for my efforts to assist you, please click the "Thumbs Up" button to give me a Kudos.
And accept this as the solution to help others find your post helpful.
Take care now and do have a fabulous week ahead. 🙂
Regards,
Jeet_Singh
I am an HP Employee