@Fimf,
Welcome to HP Forums, this is a great place to get support, find answers and tips.
Thank you for posting your query, I'll be more than glad to help you.
I understand that you are facing issues with your HP Pavilion G5470sc Desktop PC wherein you get an error message 0xe0ef000e while restoring the computer to factory setting.
This issue could occur if there is hard drive failure.
Let's go through a few steps to resolve this issue.
And here's the step by step guide for you in the link to run a hard drive test on the unit: Testing for Hardware Failures (Windows 10, 😎
Depending upon the results, you need to contact HP phone support for further assistance at the link: www.hp.com/contacthp
You have a good day ahead.
Rainbow23
I am an HP Employee
If you found this post helpful, you can let others know and also show your appreciation by clicking the “Accept as Solution” button, “Thumbs up" button!