In this wikiHow, you will learn how to factory reset your HP laptop. If your HP laptop has a lot of problems, sometimes a factory reset can be a quick way to fix your computer. The only problem is that with this solution all the files on your computer will be lost. It is recommended that you make a backup copy of the files you want to keep before you begin.
Steps
Method 1 of 2: Use Windows Settings

Step 1. Back up the files you want to keep
This includes all the documents, pictures, music, videos and any other type of files that you want to keep. You can back up your files using an external hard drive, a high-capacity USB, or a conventional disk. You can also use online storage like Dropbox or Google Drive. Any files that you don't back up will be erased during the restore process.
Follow Back Up Your Files in Windows 10 for more information

Step 2. Click Start

It's the button with the Windows logo in the lower-left corner of the taskbar.

Step 3. Click Settings

It's the icon that looks like a gear in the leftmost column of the Start menu.

Step 4. Click Updates and Security

It is the last option below the icon with 2 rotating arrows.

Step 5. Click Recover
It's in the left column, next to an icon that looks like a clock inside an arrow.

Step 6. Click Get Started
It's under the top option that says "Reset this PC."

Step 7. Click Clear All
It's the second bar at the bottom. This will start the process of resetting your computer. This process can take a while and will cause your computer to restart several times during it. Make sure your computer is connected and has enough battery.
You can also click "Keep my files." This option will reinstall Windows without deleting your files. This can fix some of your computer's problems, but it may not be as effective
Method 2 of 2: Use advanced startup

Step 1. Back up the files you want to keep
This includes all the documents, pictures, music, videos and any other type of files that you want to keep. You can back up your files using an external hard drive, a high-capacity USB, or a conventional disk. You can also use online storage like Dropbox or Google Drive. Any files that you don't back up will be erased during the restore process.
Follow Back Up Your Files in Windows 10 for more information

Step 2. Restart or turn on your laptop
If your laptop is on, turn it off using the power button, or the Windows start button. Once it's off, turn it on again. If your laptop is already off, turn it on.

Step 3. Immediately press F11 several times
Before you see the HP logo during the startup process, press F11 several times. This will take you to the advanced startup option. If your computer doesn't boot into advanced startup mode, restart it and try again. This may take a few tries.

Step 4. Click Advanced Options
It's on the screen that says "Automatic Repair."

Step 5. Click Troubleshooting
It's the second option in the middle, next to the icon with tools.

Step 6. Click Format this PC
It's the second option in the middle, on the left. It's next to an icon with a circular arrow under a white bar.

Step 7. Click Clear All
It is the second option at the bottom. It will take a few minutes to finish everything.
You can also click "Keep my files." This option will reinstall Windows without deleting your files. This may fix some of your computer's problems, but it may not be as effective

Step 8. Click All Hard Drives
This option will erase all files on your HP laptop and reinstall Windows.

Step 9. Click Format
This will start the process of resetting your HP laptop. This can take a while, and your PC will restart several times throughout the process.