Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»How To Factory Reset Windows From Command Prompt

How To Factory Reset Windows From Command Prompt

AbhishekBy AbhishekMarch 18, 2022
factory-reset-windows-from-command-prompt

Sometimes when your system experiences some issues, the only viable option at hand could be performing a factory reset.

In general, you can reset your PC using the utility tool through the GUI. However, if you are using Windows Recovery Environment, accessing the command prompt may be a more convenient or only option.

But can you factory reset your PC only with Command Prompt?

Table of Contents

  • Factory Reset With Command Prompt
  • Clean PC With Command Prompt
  • Format C Drive
  • Frequently Asked Questions
    • Do I need to reset my PC?
    • How can I keep my installed applications during the reset?

Factory Reset With Command Prompt

Performing a factory reset restores your PC to default configuration. It wipes all the applications and other data from your system. After the reset, it will reinstall Windows OS and any programs installed by the PC manufacturer. 

Here’s how you can factory reset your PC with the Command Prompt:

  1. If you can’t log in, start/restart your PC. Press and hold the Power button until it shuts off.
  2. Do this three times, and the next boot will load Windows Recovery Environment.
     windows-recovery-environment
  3. Now, go through Advanced Options > Troubleshoot > Command Prompt. troubleshoot-advanced-options
  4. Type cd C:\windows\system32 and press Enter.
  5. If you can log in, press Windows + R and type cmd. Then press Ctrl + Shift + Enter to launch Command Prompt as administrator cmd.
  6. Type systemreset -factoryreset on the Command Prompt and press Enter.
    command-prompt-factory-reset
  7. You’ll get a choice to keep your files or remove everything.
    • If you select Keep my files , it will preserve everything inside C:\Users\<current user>. where,<current user> = your username.
    • Whereas, if you choose Remove everything, the system will delete everything even your personal files.
      keep-or-remove-everything-reset
      Both options will still remove any installed applications.
  8. If you choose to Remove everything, your system displays this menu.reset-pc-remove-files
    You can recover deleted contents if you choose Just remove my files. However, if Remove files and clean the drive is choosen, deleted contents can be harder to recover. We recommand you choose the latter option if you have any system issues.
  9. Before resetting, do a final check of all the apps that will be removed by clicking the given option.
  10. Finally, click Reset to initiate the factory reset.

Clean PC With Command Prompt

Another way to completely reset your PC is to perform a Fresh start. This method goes one step beyond factory restore and removes even the preinstalled applications. The Microsoft store apps are still reinstalled, though.

Follow the steps below to perform a fresh start:

  1. Run Command Prompt as an administrator.
    Command Prompt as an administrator
  2. Type cd C:\Windows\system32 and press Enter to go to this directory.
  3. Enter the systemreset -cleanpc command.
  4. Click on Next to start the process. fresh-start-clean-pc

Format C Drive

You need to format the C drive if you can’t load the Windows Recovery Environment. It will cleanly install a new Windows OS on your system after removing all the data. Follow the instructions below to do so:

  1. Boot your PC through a Windows Installation Media.
  2. In the interface, select your language preferences, time and currency format, and input method. Then, click on the Next button to continue.
  3. On the install screen, click on Repair your computer. It will take you to WinRE.
  4. Go to Command Prompt. Type the command: format c: /fs:ntfs and press Enter.
  5. Enter Y to proceed with the formatting.

Frequently Asked Questions

Do I need to reset my PC?

We recommend only resetting your PC as the final solution to fix any system problems. Before trying to reset your PC, it is better to use the System Restore feature in Windows. 

It can restore your system configurations to a restore point lacking system errors. Please use the command rstrui to initiate a system restore.

How can I keep my installed applications during the reset?

Performing a factory reset will remove your installed applications in all scenarios. To retain your apps, you can reset your PC to a refresh image. The older versions of Windows had a recimg tool to create the image, but it has been removed in the newer ones.

You can still perform this method with the DISM tool. Use the follow

  1. Download and install ADK and create a bootable Windows PE media.
  2. Then, go to the WinPE command prompt.
  3. You must have a recovery image to use this method.
  4. You can create the image with the command: dism /Capture-Image /CaptureDir:C:\ /ImageFile:D:\recoveryimage\install.wim /Name:windows.
  5. Change the ImageFile directory and name as you wish.
  6. Enter the command dism /Apply-Image /D:\recoveryimage\install.wim /Index:1 /ApplyDir:C:\ to reset to the image.
how-to
Abhishek

I'm an electronics engineer, avid writer, and tech-enthusiast specializing in troubleshooting computer-related issues. I enjoy reading both fiction and non-fiction in diverse genres. Apart from that, I also have a habit of trying out most new games but never completing them.

Related Posts

file system error (-2147219196)

8 Ways To Fix File System Error (-2147219196)

July 7, 2022
how to disable xbox game bar

How to Disable Xbox Game Bar on PC?

July 7, 2022
windows-11-keeps-restarting

My Windows 11 Keep Restarting – Why & How to Fix it

July 7, 2022
how to full screen a game

How to Go Full Screen on a Game Quickly

July 7, 2022
best-photo-viewer-for-windows

15 Best Photo Viewer Apps for Windows

July 6, 2022
computer not starting

Computer Not Starting? Here’s How To Turn It On

July 5, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
best-crafting-games

11 Best Crafting Games You Can Play in 2022

July 8, 2022
strategy games ps4 ps5

Best 10 Strategy Games for PS4 and PS5

July 8, 2022
psu-fan-up-or-down

PSU Fan Direction: Should it Face Up or Down?

July 8, 2022
You may also like
new ink cartridge not working

New Ink Cartridge Not Working? 5 Ways to Fix it

July 8, 2022
how to setup logitech mouse

How to Setup a Logitech Mouse (Beginner’s Guide)

July 8, 2022
word-spell-check-not-working

Word Spell Check Not Working? Here’s How to Fix it

July 8, 2022
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

October 25, 2021
Facebook Twitter Pinterest
  • Home
  • About Us
  • Privacy Policy
  • Affiliate Disclosure
© 2022 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.