Your Windows PC may have a problem because of a virus attack or malware damage.
In this case, you may want to factory reset Windows 10 from Command Prompt to repair it.
Its a good idea to reset the computer if you want to dispose of it.

you’re free to also take a stab at keepmoving Windows to another driveif necessary.
When finishing the resetting process, you could reinstall important applications and reconfigure the configs you removed.
This is because the reset can typically keep your operating system intact.

Keep reading to find out how to easily factory reset Windows 10 from Command Prompt without losing data.
MiniTool ShadowMaker enables you tobackup filesand folders, disks and partitions, and even the operating system.
Besides, it can also sync files to protect your data as much as possible.

Afterward, you could use the restore feature to recover your data and computer to a previous state.
Here are some brief steps how to back up the Windows computer using MiniTool ShadowMaker.
Step 1: OpenMiniTool ShadowMakerand clickKeep Trialto continue.

Step 2: Go to theBackuppage.
At the beginning, the operating system is selected as the backup source by default.
you’re free to click theSOURCEmodule and chooseFolders and Filesto choose the critical data you oughta back up.

Step 3: Choose theDESTINATIONmodule to save the backup image.
MiniTool ShadowMaker supports four destination paths to be chosen (User,Computer,Libraries, andShared).
But we strongly recommend you choose an external hard drive underComputer.
Then click theOKoption to go on.
Step 4: SelectBack Up NoworBack Up Later.
Both of them can lead you to theManagesection, where you will see the backup progress.
If you choose to back up later, you oughta start the task underManage.
How to Factory Reset Using CMD
How to factory reset Windows 10 from command prompt?
A factory reset can easily solve problems related to the operating system.
Next, we will show you how to set the computer to the factory tweaks.
Take Windows 10 as an example.
Note that these steps are also applicable if you want to factory reset Windows 11 from Command Prompt.
Step 1: If the computer can boot correctly, inputcmdinto the search box of Windows and right-clickCommand Prompt.
Then selectRun as administer.
If your PC is unable to boot, restart it, long press thePowerbutton for five to ten seconds.
Repeat this twice and the third time the computer will automatically enter the Windows Recovery Environment.
Then, go toAdvanced Options>Troubleshoot>Command Prompt.
Step 2: Typesystemreset -factoryresetin the Command Prompt window and hit theEnterkey.
Step 3: Then you will receive a message prompt.
Choose an option betweenKeep my filesandRemove everything.
Step 4: ChooseRemove Everythingas an example.
Then youll be asked if you want to clean the drive.
SelectJust remove my filesorRemove files and clean the drive.
good idea to completely clean the drive if there is something wrong on your PC.
Step 5: Read what the resetting will do and click theResetbutton.
Other Ways to Factory Reset
How to factory reset Windows 10 from command prompt?
There are some other ways to factory reset the computer except for using Command Prompt.
In the following part, we will show you how to perform a factory reset using the two methods.
Take Windows 10 as an example.
Reset This PC
Windows 10 Reset this PC can help you reset your setup.
It will keep your data if you choose theKeep my filesoption before resetting the computer.
Look at the following step-by-step introduction.
Step 1: Go toSettings, locateUpdate & Security, and click it.
Step 2: ChooseRecoveryand clickGet startedunderReset this PCto continue.
Step 3: Choose an option of how to reset this PC and clickResetafter reading the subsequent messages.
Windows 10 ISO Image File
This way can also help you finish a factory reset.
Step 1: Navigate to the Windows 10 ISO file and double-click it to continue.
Step 2: Double-clicksetupin the pop-up window and then clickNextto go on.
Step 3: it’s crucial that you wait to check for updates for a short time.
Then click theAcceptoption when you see the license terms.
Step 5: ClickChange what to keepto change the things you want to keep after theReady to installscreen appears.
Then click theNextbutton and thenInstallto complete the reset.
Besides, refreshing start your setup will delete some of the preinstalled programs as well.
Even so, it still allows you to keep your data.
A factory reset should be the last resort.
This post introduces you to several ways about how to run factory reset and keep your data safe.