How To Factory Reset Your Windows 11/10 PC Using Command Prompt

There are times when a Windows computer becomes so slow, unstable, or problematic that performing a factory reset is the best solution. Malware infections, corrupted system files, persistent software errors, failed updates, driver conflicts, startup problems, and general performance issues can all make a factory reset necessary. Resetting Windows restores the operating system to a fresh state, often resolving issues that regular troubleshooting methods cannot fix.

Most users perform a reset through the Windows Settings app, but that option is not always available. Sometimes Settings refuses to open, Windows becomes partially unusable, or certain system components stop responding. In such situations, Command Prompt can provide an alternative way to launch the Windows reset process. By using a few built-in commands, you can access recovery tools and start the reset procedure even when normal Windows settings are inaccessible.

A factory reset can either keep your personal files or remove everything from the computer. The first option reinstalls Windows while preserving documents, photos, and other personal data. The second option removes all files, apps, and settings, returning the PC to a near-factory condition. Before proceeding with any reset, it is important to understand the available options and back up important data whenever possible.

PC running slow or unstable? Do you want to update drivers?

This guide explains how to factory reset a Windows 11 or Windows 10 PC using Command Prompt, including methods that work from within Windows and from the Windows Recovery Environment.

Before You Reset Your PC

A factory reset can remove installed applications, settings, and potentially personal files depending on the option selected.

Before starting:

  • Back up important documents.
  • Save photos and videos.
  • Export browser bookmarks if needed.
  • Record software license keys.
  • Sync important files to cloud storage.
  • Ensure the laptop is connected to power.

Taking these precautions can prevent accidental data loss.

Method 1: Launch Windows Reset Using Command Prompt

The easiest way to initiate a factory reset through Command Prompt is by launching the built-in Reset This PC wizard.

Open Command Prompt

  • Press Windows + S
  • Search for Command Prompt
  • Select Run as administrator

Start Reset This PC

Type:

systemreset -factoryreset

Press Enter.

The Reset This PC interface will open.

Choose a Reset Option

Windows will provide two choices:

  • Keep my files
  • Remove everything

Select the option that best fits your needs.

Follow the on-screen instructions to begin the reset process.

This method works when Windows is still able to boot normally.

Method 2: Open Advanced Startup from Command Prompt

If Windows settings are unavailable, you can use Command Prompt to access recovery tools.

Open Command Prompt as Administrator

Type:

shutdown /r /o /f /t 0

Press Enter.

The computer will immediately restart into the Windows Recovery Environment.

After restart:

  • Select Troubleshoot
  • Click Reset this PC

Choose either:

  • Keep my files
  • Remove everything

Follow the prompts to continue.

This method is useful when Settings will not open or system problems prevent normal access.

Method 3: Reset Windows from Recovery Command Prompt

If Windows cannot boot properly, you may need to access Command Prompt from the recovery environment.

Enter Windows Recovery Environment

If Windows fails to start repeatedly:

  • Power on the PC
  • Interrupt startup three times by holding the power button
  • Windows should enter Automatic Repair

Select:

  • Advanced options
  • Troubleshoot
  • Command Prompt

Launch the Reset Interface

In Command Prompt, enter:

systemreset -factoryreset

Press Enter.

If supported by your installation, the Reset This PC wizard will launch.

Proceed with the desired reset option.

Method 4: Use the System Recovery Command

Windows Recovery Environment can also be opened directly through Command Prompt.

Open Command Prompt

Run:

reagentc /boottore

Press Enter.

You should receive a confirmation message.

Restart the Computer

Type:

shutdown /r /t 0

Press Enter.

The computer will boot into recovery mode.

Navigate to:

  • Troubleshoot
  • Reset this PC

Choose the appropriate reset option and continue.

This method is useful when you want direct access to recovery tools without manually opening them through Settings.

Method 5: Perform a Complete Factory Reset (Remove Everything)

If you plan to sell, donate, recycle, or transfer ownership of the computer, removing everything is usually the preferred option.

Start the Reset Process

Launch Reset This PC using one of the methods above.

Choose:

  • Remove everything

Windows will then present additional choices.

Select Data Removal Level

Options may include:

  • Just remove my files
  • Fully clean the drive

The full clean option takes longer but makes file recovery significantly more difficult.

Choose the option appropriate for your situation.

Continue through the remaining prompts.

Windows will reinstall itself automatically.

Method 6: Factory Reset While Keeping Personal Files

If the goal is to fix Windows problems without deleting personal documents, use the Keep My Files option.

Launch Reset This PC

Run:

systemreset -factoryreset

Choose:

  • Keep my files

Windows will:

  • Remove installed applications
  • Reset settings
  • Reinstall Windows

Personal files such as documents, pictures, and videos remain intact.

This option is often sufficient for resolving software-related problems.

Method 7: Use Cloud Download During Reset

Modern versions of Windows 11 and Windows 10 offer Cloud Download during reset.

Start Reset This PC

Choose either:

  • Keep my files
  • Remove everything

Select Reinstallation Method

You may see:

  • Cloud download
  • Local reinstall

Cloud Download:

  • Downloads fresh Windows installation files from Microsoft
  • Uses internet connectivity
  • Provides the latest Windows image

Local Reinstall:

  • Uses files already stored on the computer
  • Requires no internet connection

Cloud Download is generally recommended when local system files may be corrupted.

Method 8: Reset Windows from Installation Media

If the built-in reset process fails, installation media can provide access to recovery tools.

Create Installation Media

Use Microsoft’s Media Creation Tool on another working PC.

Create:

  • Bootable USB drive

Boot From USB

Insert the installation media.

Restart the computer.

Boot from the USB device.

Access Recovery Tools

Select:

  • Repair your computer

Navigate to:

  • Troubleshoot
  • Reset this PC

Follow the reset prompts.

This method works even when Windows cannot start normally.

Method 9: Verify Recovery Environment Is Enabled

The reset process depends on the Windows Recovery Environment.

Check Recovery Status

Open Command Prompt as Administrator.

Run:

reagentc /info

Press Enter.

Look for:

Windows RE status: Enabled

If enabled, reset features should function normally.

If disabled, recovery tools may require reconfiguration before use.

Method 10: Reset Windows After Repairing System Files

If reset options fail to launch, repairing system files may help.

Run System File Checker

Open Command Prompt as Administrator.

Enter:

sfc /scannow

Press Enter.

Allow the scan to complete.

Repair Windows Components

Then run:

DISM /Online /Cleanup-Image /RestoreHealth

After repairs finish:

  • Restart the computer
  • Attempt the reset process again

Repairing corrupted components often restores reset functionality.

What Happens During a Factory Reset?

A Windows factory reset performs several actions automatically.

Depending on the selected option, Windows may:

  • Reinstall the operating system
  • Remove applications
  • Restore default settings
  • Recreate system files
  • Remove drivers not included with Windows
  • Delete user accounts
  • Remove personal files (if selected)

The process can take anywhere from 20 minutes to several hours depending on hardware performance and reset options.

When Should You Factory Reset Windows?

A factory reset may be appropriate when:

  • Windows is extremely slow
  • Persistent errors occur
  • Malware infections cannot be removed
  • Startup problems continue
  • Major system corruption exists
  • Applications constantly crash
  • The computer is being sold
  • You want a fresh Windows installation

A reset is often more effective than spending hours troubleshooting severe software issues.

Common Problems During Reset

Several issues can interrupt the reset process.

Common examples include:

  • Reset failed unexpectedly
  • Recovery environment disabled
  • Corrupted Windows image
  • Insufficient storage space
  • Damaged recovery partition
  • Power interruptions
  • Hardware failures

Most can be addressed through recovery tools or installation media.

FAQs

Can I factory reset Windows using Command Prompt?

Yes. The most common method is running:

systemreset -factoryreset

which launches the Reset This PC wizard.

Will a factory reset remove viruses?

In most cases, yes. Reinstalling Windows removes malicious software stored within the operating system environment.

What is the difference between Keep My Files and Remove Everything?

Keep My Files preserves personal documents while removing apps and settings. Remove Everything deletes personal data, apps, and settings.

How long does a Windows reset take?

Most resets require between 20 minutes and 2 hours depending on system performance and the selected reset method.

Can I stop a reset once it starts?

Interrupting a reset is not recommended because it may leave Windows in an unusable state.

Does a factory reset reinstall Windows?

Yes. Reset This PC reinstalls Windows automatically using either local files or a cloud download.

What if the reset command does not work?

Try accessing the Windows Recovery Environment using:

shutdown /r /o /f /t 0

or use Windows installation media.

Is Cloud Download better than Local Reinstall?

Cloud Download is often preferred because it downloads fresh installation files directly from Microsoft and avoids problems caused by corrupted local files.

Final Thoughts

Knowing how to factory reset your Windows 11 or Windows 10 PC using Command Prompt can be extremely useful when the Settings app is unavailable, Windows becomes unstable, or normal recovery options fail to open. By using built-in commands such as systemreset -factoryreset, shutdown /r /o /f /t 0, and reagentc /boottore, you can quickly access the Windows recovery environment and start the reset process even in difficult troubleshooting situations.

Before performing any reset, always back up important files and understand whether you want to keep personal data or completely erase the system. For most users experiencing software issues, the Keep My Files option provides an excellent balance between preserving data and restoring Windows functionality. For computers being sold or transferred, Remove Everything offers a more thorough reset.

By following the methods in this guide, you can successfully restore Windows to a clean state, resolve persistent operating system problems, and return your computer to reliable working condition using Command Prompt and Windows recovery tools.

GeeksDigit.Com
Logo