If you use Windows 8(.1) or 10, you can perform a PC reset, if you experience issues with your computer that you couldn’t resolve.
The PC reset feature (which is an equivalent of reset to factory defaults option on mobile devices) will quickly set Windows back to its factory-default state and delete everything (your personal data and applications you installed), fixing any system corruption problems and removing any buggy drivers or malware that’s causing problems. You will have to reinstall your installed applications afterwards.
To reset your computer (If your computer is booting properly):
Settings -> General option -> Advanced Startup -> choose Reset
Settings -> Update and Security -> Recovery -> Reset your PC.
Note: If your computer is not booting properly, you can reset it from the Advanced boot options menu.
To access it:
Hold Shift and select Restart (if you have access to the login screen) -> Troubleshoot -> Reset your PC
Press the power button to turn your computer on and immediately press Shift + F8 (If you don't have access to the login screen)