How to factory reset a Windows 10 PC with the command line
If your Windows 10 computer is running slowly or not properly, or if you just want to sell it, then you may need to reset it to factory settings. See how you can do this through the command line.
If you are planning to sell your computer, a factory reset is one of the steps you need to know and do before you give it away. See an easy way to use the Command Prompt.
Step 1: First, open the command prompt. To do this, type Command Prompt in the Windows search bar, and then click Command Prompt from the search results.
Step 2: At the command prompt, type this command, and then press Enter.
The Select a Option menu will appear. Here, you can choose to either remove applications and settings while keeping your files, or you can remove everything. If you want to sell your laptop, you have to remove everything.
Then, in a second Windows question, decide if you just want to remove your files or delete your files and wipe the drive. The first is faster but less secure, while the second takes much longer.
Keep in mind that removing files and cleaning the drive makes it harder for someone to recover those files - but it is not impossible.
The next screen will inform you that the computer is ready to reset. Click "Reset" to get started.
When the factory reset process is complete, the initial setup screen will appear, as if you had taken the computer out of the box for the first time.