Top 2 Ways | Factory Reset Windows 10 from Command Prompt (2023)

Quick Navigation:

  • Need help: How do I reset Windows 10 from command prompt?
  • How does Reset This PC work in Windows 10?
  • Method 1: Perform Windows 10 reset from command line
  • Method 2: Fresh start Windows 10 using command prompt
  • Better data protection thanfactory reset
  • Summary

Need help: How do I reset Windows 10 from command prompt?

"My Windows 10 issues started after a recent update. I was unable to connect to the internet so I did a restore. After that, everything started going wrong. I'm unable to run most programs and I can't open Windows settings to try a reset. This is the same in safe mode.

I can restart in safe mode with command prompt but I don't know how to run the reset from there. Does anyone know the command? I know that rstrui.exe runs the system restore dialogue, but I need the one to reinstall Windows. Thanks in advance! "

The rstrui.exe ONLY restores system files, drivers, or problems caused by software or Windows update, so you cannot use it tofactory reset Windows 10 to default settings. But it does not matter, you can turn tosystemreset.exe command linefor reset or refresh. Also, if your computer is still bootable, you can try to access Reset this PC within Windows. And I'll introduce it in detail later.

How does Reset This PC work in Windows 10?

The Windows 10 Reset This PC feature reverts to the factory default state with two options: Keep my files and Remove everything. It removes installed apps, but keeps preinstalled ones. Let's dive into the details.

  1. Keep my files- Your computer will boot into Windows recovery environment (WinRE), scan and place all your files and personal settings aside, install a fresh copy of Windows with Windows recovery image, and then put your personal files and settings back where they were found.
  2. Remove everything- Similar to the previous option, but this one will erase and format your C: drive in the WinREand then install Windows from scratch.

Method 1: Perform Windows 10 reset from command line

1. Open an elevated command prompt.

>> Ifyour Windows 10 is bootable,type “cmd” in the search box and right click on the result Command Prompt and then select Run as administrator.

(Video) How to Reset Windows 10 From Command Prompt (Easier Way to Reset)

>> If your Windows 10 cannot load normally, restart your computer, press and hold the Power button for 5-10 seconds,repeat twice and it will enter the Windows Recovery Environment automatically on the third boot. Then, select Advanaced Options > Troubleshoot >Command Prompt.

2. From the command prompt window, type “systemreset –factoryreset ” (without quotes). Then, hit Enter.

★If you are resetting Windows 10 from boot, you need to replaceC: with X:. Since the systemreset.exe is located in C: drive while the Command prompt from WinRE is in X:\windows\system32\.
★ Sometimes, the drive letter assigned in WinRE may not be the same as normal Windows. So you can type “diskpart” and then use “list volume” command to show the drive letter assigned to each drive.

3. Then, select "Keep My Files" or "Remove Everything"to reset your PC, depending on if you want to keep your personal files. Here take Remove Everything as an example.

4. Select "Just remove my files" or "Remove files and clean the drive" when you are asked if you want to clean the drive. If your computer is problematic, it's suggested to completely clean the system disk.

5. In the Ready to reset this PC window, confirm the items need to be removed and click "Reset".

(Video) 2023 Reset Windows 10 Password without Software or Bootable Media using only Command Line

Practical Tips:
>>If you do not want your installed programs lost, you can custom Windows 10 reset image from command prompt and use the custom refresh image to reset your Windows 10 PC beforehand.
>> If the WinRE also fails to load, you can boot your computer from Windows 10 recovery disk or installation disk to use the recovery options.
>> If Windows 10 reset failed with no changes were made, then you should check if the WinRE image and reset image are in place. You can run the command “reagentc info” to check the recovery image status.

Method 2: Fresh start Windows 10 using command prompt

Except forsystemreset –factoryreset, you still can use“systemreset -cleanpc”, which can help reinstall and update Windows. It will retainany data it can find, but removes all applications, including those preinstalled by the manufacturer. Upon reset, it will reinstall any Microsoft Store apps that had been previously installed.

1. Open command prompt with priority.

2.From the command prompt window, type “systemreset –cleanpc” (without quotes). Then, hit Enter.

3. A few seconds later, you will see the Fresh start window. Click Next to continue.

4. Then, it will start to download any required files and perform the refresh process. Just wait until the process complete, and restart your computer to see the fresh version of the operating system.

No matter which way you choose, resetting or refreshing Windows 10 will remove all the software you installed, even some of the preinstalled apps. Then, you need to spend much time reinstalling programs you will use. What’s worse, you have to reactive, re-login, and re-configure some of the software.

(Video) How to Fix Windows 10/11 Startup Problems using Command Prompt (Complete Tutorial) | 4 Ways to Fix

You may wonder if resetting your PC is necessary when encountering system problems. The answer is a definite NO. By creating a full system backup when everything is functioning properly, you can easily restore the system image to a new hard drive, including the operating system, installed programs, games, personal data, and more.

Better data protection thanfactory reset

As mentioned earlier, creating a full system backup is crucial for computer protection. Now, let's explore how to accomplish this task. You need reliable and free backup software that can effectively back up the entire system, including the system partition.

To ensure your backup includes the latest files and programs, the software should support regular backups on a daily, weekly, or monthly basis. However, you might wonder if each backup would consume significant time and require a large storage disk.

The answer is "NO" when using AOMEI Backupper Standard. This software offers several advantages, including:

System backup along with disk backup, partition backup, and file backup options, with automated backup modes.
Incremental backups to only back up changed files, saving time and storage space.
Multiple backup destination options, such as external hard drives, USB flash drives, network drives, cloud drives, and NAS.
Compatibility with all editions of Windows 11/10/8.1/8/7/Vista/XP, both 32-bit and 64-bit.
A user-friendly interface that makes it easy to perform backups, even for first-time users.
Bootable rescue media creator for easy and quick system image restoration in case of computer failures.

Now refer to the following steps to see how it works.

Step 1. Go toDownload Centeror click the button below to download and install AOMEI Backupper Standard on your computer.

Download Freeware Win 10/8.1/8/7/XP

(Video) Factory Reset & Fresh Install Windows

Secure Download

Step 2. Click System Backup under the Backup tab. If you need to backup the entire hard drive, just select Disk Backup instead.

Step 3. To make a system backup even easier, AOMEI Backupper Standard will include all the system-related partitions in the backup automatically. Youjust needto specify a location to save the image backup.

Step 4. For auto backup task,click Scheduleand select Daily/Weekly/Monthly as you like. After that, clickStart Backupto launch the backup process.

The Professional edition offers:
Backup Scheme: Choose between Incremental or Differential backup methods and manage backup disk space by deleting older backups while retaining the latest ones.
Hard Drive Cloner: Effortlessly transfer the operating system from HDD to SSD or clone a hard drive to SSD in Windows, eliminating the need for OS reinstallation and preserving applications and files.


Resetting Windows 10 from command prompt is a helpful way to get your computer back when it has problems. And itallows you to keep your data. Besides, nothing will be kept, the operating system, installed programs, drivers, etc. If you fresh start a computer, some of the preinstalled programs will be deleted as well. Thus, it can be the last resort but not the best way.

To keep everything as they were, it's suggested to create a full system backup with best free backup software -AOMEI Backupper Standard.With a backup ready, you can solve any system problem without losing programs or data by restoring from a backup.To protect unlimited computers within your company, tryAOMEI Backupper Technician.

(Video) How to Repair Windows 10 Using Command Prompt

With it, you still cancreate a portable version on removable device, and connect it to target PCs to use AOMEI Backupper without installation. With the inbuilt AOMEI Image Deploy tool, you are also allowed to deploy/restore system image file on server-side computer to multiple client-side computers over network.


Top 2 Ways | Factory Reset Windows 10 from Command Prompt? ›

You can also type systemreset –factoryreset in the Command Prompt window and press the Enter. Then you can make a choice of how to do factory reset. Note: If Windows 10 cannot load normally, then you need to boot into WinRE and choose Command Prompt to continue.

Can you factory reset a PC from Command Prompt? ›

You can also type systemreset –factoryreset in the Command Prompt window and press the Enter. Then you can make a choice of how to do factory reset. Note: If Windows 10 cannot load normally, then you need to boot into WinRE and choose Command Prompt to continue.

Is there a way to force factory reset Windows 10? ›

Here's how to factory reset your PC.
  1. Click the Start Menu and select the gear icon in the lower-left to open up the Settings window. You can also select the Settings app from the app list. Under Settings, click Update & Security to continue.
  2. Click the Recovery tab and select Get started under Reset this PC.

How do I clean my laptop using Command Prompt? ›

You can use the cleanmgr command to launch the Disk Cleanup tool using Command Prompt. To use it: Open Command Prompt, type cleanmgr, and hit Enter. In the Drive Selection window, select the drive you want to clean up and click OK.

What is system reset command? ›

The systemreset.exe command-line tool is primarily designed to launch the Windows 10 Reset this PC feature through the user interface.


1. Four ways to To Boot Into Command Prompt before entering Windows if you Forgot your Password
2. How To Factory Reset Or System Reset Windows 10 Using Command Prompt ( CMD )
(Rahul Bhardwaj)
3. How To Factory Reset Windows 10 Back To Factory Settings | In 2021
(U.S Computer Solutions)
4. How to Fix Windows 10 Unable to Reset PC Problem
5. 2022! Reset forgotten Windows 11 Password, PIN and Microsoft account using Command Prompt
6. Reset Password Windows 10 Via Command Prompt CMD [Tutorial]
Top Articles
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated: 03/11/2023

Views: 6374

Rating: 4.6 / 5 (76 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.