Baljit Singh,read through [http://www.eightforums.com/windows-updates-activation/40878-windows-update-failure-configuring-windows-updates-rever.html|this.] you could try to disabling Secure boot in the BIOS, then run the updates and after that re-enable secure boot. Check [http://support.hp.com/us-en/document/c03653226|on here] for more information about the secure boot. Lastly, you can also try this way:
Type Windows key + R
Type in msconfig.exe and hit enter
Select the Services tab on the top
Check the box on the bottom that says Hide all Microsoft services
Click Disable all
Do an “Update and Restart” of the computer