Hello,
Welcome to the HP Support forum. Thank you for posting.
This is happening because Windows cannot complete and cannot properly install updates.
It may be even the bigger Windows 10 Anniversary Update
Most often reason for the failure is some 3rd party driver conflicting with the update process. Your PC may have older drivers than what Win 10 wants to be.
Since this is a new PC, let's flatten it and start over.
1. Please, perform recovery - system recovery and restore the PC to factory default settings. Since this is a new PC for you, I guess you will not loose much (anything). Here is how it should work:
>> https://www.youtube.com/watch?v=qTlHwkVuv5Q
or >> http://support.hp.com/us-en/document/c04758961
2. Once ready and once you return to factory default condition, please do the following:
2.1 . Uninstall any 3rd party antivirus programs - if anything. If you see McAfee installed, please uninstall it from Control Panel and restart. Also, run the McAfee MCPR tool to get rid of McAfee leftovers >> http://us.mcafee.com/apps/supporttools/mcpr/mcpr.asp
2.2. Visit the HP Web site and download and run drivers updates - new driver versions may be present that will work with the newer Windows 10 release:
>> http://support.hp.com/us-en/drivers
or
Use the Device Manager method to update drivers >> http://support.hp.com/us-en/document/c03330139
3. Manually upgrade to Windows 10 - 1607 - Anniversary Update
>> http://support.hp.com/us-en/document/c04876361
Use the USB upgrade method
4. Once upgraded to Win 10 AU, run Windows Update to complete the process.
Hopefull this will work fine. Let me know if you have any questions.