If your Windows 10 PC is running slow or acting abnormally, or if you just want to sell it, you’ll want to perform a factory reset. Here’s how to use Command Prompt to factory reset your computer.
First, open Command Prompt. To do so, type “Command Prompt” in the Windows Search bar, and then click the Command Prompt app from the search results.
In Command Prompt, type this command, and then press the Enter key.
The Choose an Option menu will appear. Here, you can choose to either remove apps and settings while keeping your files, or you can remove everything. If you want to sell your laptop, you should remove everything.
Next, decide whether you want to just remove your files, or remove your files and wipe the drive. The former is quicker but less secure, while the latter takes significantly longer (It took my laptop about six hours.) but is much more secure.
Do note that if you remove the files and clean the drive, it does make it more difficult for someone to recover those files—but it’s not impossible.
The next screen will let you know that the PC is ready to be reset. Click “Reset” to begin.
When the factory reset process is complete, the initial setup screen will appear as if you’ve just taken it out of the box.