Repairing Guides

how to repair windows from command prompt

by Gianni Mante Published 3 years ago Updated 2 years ago
image

And then you'll need to click Advanced options.
  1. Click Startup Repair.
  2. Click System Restore.
  3. Select your username.
  4. Enter your password.
  5. Type "cmd" into the main search box.
  6. Right click on Command Prompt and select Run as Administrator.
  7. Type sfc /scannow at command prompt and hit Enter.
Apr 8, 2022

Full Answer

How to reboot into safe mode at a command prompt?

To get into Safe Mode, you have three different options to choose from:

  • Standard Safe Mode – press the 4 or the F4 key on your keyboard to start it
  • Safe Mode with Networking – press 5 or F5
  • Safe Mode with Command Prompt – press either 6 or F6

How to factory reset your Windows 10 using command prompt?

To run system restore in safe mode, follow the steps below:

  1. Start your computer and press "F8" repeatedly until the Windows advanced options menu appears.
  2. Click "Safe Mode with command prompt" and press "Enter". If your computer can boot normally, type "cmd" in the search box and click "Command Prompt" to continue.
  3. Sign in using an administrator account if needed. ...

More items...

How to start System Restore from the command prompt?

To launch system restore via the command prompt on Windows:

  • Start your computer and press the F8 key repeatedly before the Windows logo appears, it will open the Startup Settings menu.
  • Select Enable Safe Mode with Command Prompt and press Enter.
  • Sign in using an administrator account.
  • Once the command prompt is displayed, type the following command:

How to fix Windows 10 boot errors using command prompt?

  • Start WinRE, and open a Command Prompt window.
  • Start a text editor, such as Notepad.
  • Navigate to C:\Windows\System32\Config.
  • Rename the all five hives by appending ".old" to the name.
  • Copy all the hives from the Regback folder, paste them in the Config folder, and then try to start the computer in Normal mode.

image

How do I repair Windows 10 with Command Prompt?

Open "Start", search for the Command Prompt, select it and run as administrator. 2. Then type the command: "sfc /scannow" and press "Enter". If SFC is unable to fix the problem, probably the utility cannot get the necessary files from the Windows image, which might have become broken.

How do I fix my computer using Command Prompt?

Method 2: Fix Boot and Rebuild BCD via Command PromptOpen Command Prompt according to the steps in Method 1.Type exe /rebuildbcd and press Enter.Type exe /fixmbr and press Enter.Typeexe /fixboot and press Enter.Type exit and press Enter after completing each command successfully.Restart your PC.

How do I force a Windows repair?

Hold the Shift key down at the Windows sign-in screen and press the Power button at the same time.Continue holding the Shift key, then click Restart.Once the PC restarts, it'll present a screen with a few options. ... From here, click Advanced options.In the Advanced options menu, choose Startup Repair.More items...•

Should I run DISM or sfc first?

SFC will scan the integrity of all protected operating system files, including those that are not on your hard drive. It should be used before running DISM.

How do I fix startup repair?

First, power the computer completely down. Next, turn it on and keep pressing the F8 key as it boots. You'll see the Advanced Boot Options screen, which is where you would launch Safe Mode from. Select “Repair Your Computer” and run startup repair.

How do you check if Windows is corrupted?

Click Start.In the search bar, type CMD .Right-click CMD.exe and select Run as Administrator.On the User Account Control (UAC) prompt, click Yes.In the command prompt window, type SFC /scannow and press Enter .System file checker utility checks the integrity of Windows system files and repairs them if required.More items...•

How do I repair corrupted Windows 10?

Use the System File Checker tool to repair missing or corrupted system filesOpen an elevated command prompt. ... If you are running Windows 10, Windows 8.1 or Windows 8, first run the inbox Deployment Image Servicing and Management (DISM) tool prior to running the System File Checker.

How do I run Windows repair from BIOS?

4. Run Startup Repair from an installation diskBoot to BIOS and set the first boot device to USB.Connect the installation USB to your PC.Power the system On and wait for the Windows 10 installation screen to appear.Select the Windows 10 edition, language, etc.Click Repair your computer to initiate Startup Repair.

How do I boot into Windows recovery?

You can access Windows RE features through the Boot Options menu, which can be launched from Windows in a few different ways.Select Start, Power, and then press and hold Shift key while clicking Restart.Select Start, Settings, Update, and Security, Recovery. ... At the command prompt, run the Shutdown /r /o command.More items...•

What is DISM command?

Deployment Image Servicing and Management (DISM) is a command-line tool that is used to service Windows images. You can use DISM image management commands to mount and get information about Windows image (. wim) files, Full-flash utility (FFU) files, or virtual hard disks (VHD).

Is it safe to run DISM scan?

To answer your query, yes, we suggest running the System File Checker tool to repair missing or corrupted system files on your computer. If the issue remains after running the System File Checker tool, we advise that you run the System Update Readiness tool to resolve Windows corruption errors.

Will DISM delete my files?

The DISM tool scans for inconsistencies on your computer and fixes them as it's being installed. It creates a log file that captures any issues that the tool found or fixed. It won't affect any of your apps or data.

Can you Run System Restore from Command Prompt?

1. Open CMD in System Recovery Options, type rstrui.exe and press Enter. This command will open System Restore wizard immediately.

How can I check my system performance using cmd?

Press Win + R to open Run, type cmd , and press Enter to open Command Prompt. Type winsat formal to start Windows Assessment Tool. Wait for the process to finish. When it's over, you will see the report featuring your system performance scores.

What can we do with Command Prompt?

It can be used to execute entered commands and perform advanced administrative functions. It can also be used to troubleshoot and solve certain kinds of Windows issues.

Why is my Windows 10 startup repair not working?

As you can see, the problem of Windows 10 startup repair not working can be caused by damaged, invalid or deleted system files. This software can help you create a system image backup so that you can restore system to a normal state when problems occur. What’s more, you can use AOMEI Backupper to create a bootable device for recovery before accidents happen.

How to boot into safe mode in Windows 10?

When you are in Windows Recovery, select Troubleshoot -> Advanced options -> Startup Settings. From there, press the 6) key to boot into Windows 10 safe mode with command prompt on next restart.

What is bootrec.exe?

Bootrec.exe is a standard free utility designed to troubleshoot boot problems in the Windows Recovery Environment. If the Windows 10 Startup Repair not working, you can try to fix Windows 10 with BootRec commands.

Can you restore a system with dissimilar hardware?

Tip✍: If you want to restore system with dissimilar hardware, you can enjoy “Universal Restore” feature in AOMEI Backupper Professional or other advanced versions.

What to do if you can't restart your computer?

Nevertheless, if you can’t restart your system or access your important content, then you might need to take some added measures for operating system crash recovery . By using Recoverit Data Recovery Software, you can easily recover your lost or inaccessible content pretty easily. Here are some of its major features.

How long does it take to fix Windows 10?

The program will automatically fix errors in Windows 10. However, it will taker a few minutes to repair it. Just wait for it completes. After completing the operation, you can restart your system in the normal mode. If everything goes well, it will fix any issue with Windows 10.

How to enter recovery mode in Windows 10?

Step 1. Enter Windows Recovery mode. If you can still access Windows 10, open the Settings app and select Update & Security > Recovery > Advanced startup.

How to force shutdown Windows 10?

However, you can't enter Windows as normal. Follow the below steps: Shut down your computer first and then power it on. Then press the F11 key shortly. If it might not work, hold and press on the power switch to force shutdown when it starts loading Windows 10.

What to do when you can't access Windows 10?

When you cannot access the Windows 10/11 PC, you can free download Recoverit Data Recovery Software to create bootable media and recover data from hard disk.

What are the commands to repair Windows 11?

Four different commands are offered in this part to help you repair Windows 11. They are SFC, DISM, bootrec.exe, and rstrui.exe. Pick up one method according to your situation.

How to open command prompt in Windows 10?

Way 1: Press the Shift + F10 keys to open the Command Prompt window.

How to backup Windows 11?

To create Windows 11 system image backup, only a few clicks are needed. Click Backup > System Backup, select a destination path to store the system image, and click Start Backup to begin .

How to open settings in Windows 10?

1. Press the Win + I keys to open Settings.

Can you repair Windows 11 with command prompt?

If your problems are concerning system files or Windows boot, you can resort to Command Prompt to repair it. Keep reading to learn how to repair Windows 11 using Command Prompt in detail.

How to restore a computer using command prompt?

While in Command Prompt, Use System Restore by typing: “ rstrui.exe” (without quotes) and press ENTER. (this assumes System Restore is activated on your computer.

What to do if all attempts at repairing your system files fails?

if all attempts at repairing your system files fails and you decide to start afresh with system files as at factory settings you can use command prompt in Windows 10 to RESET your computer. You’re STRONGLY advised to BACKUP your data files before doing this.

What does Dism do when you run Windows Update?

When you run this command, DISM uses Windows Update to provide the files that are required to fix corruptions.

What to do if Windows crashes after checking for malware?

If Windows still crashes even after checking for viruses and malware and nothing was found then, use the System File Checker (SFC) to scan Windows system files for any corruption of files and then restore the files . Follow the steps described below.

Can I repair Windows 10 with command prompt?

Yes you can repair Windows 10 with command prompt. Before you start repairing Windows 10 through the command prompt, make sure you have scanned your system with your antivirus package such as Windows Defender. Also if you have an anti-malware program such as Malwarebytes, it’s a good idea to scan your system also, ...

How to access system restore command prompt?

To access the System Restore with Command Prompt, run Command Prompt from Windows recovery mode first. Then type rstrui.exeand hit Enter.

What is the command line for Windows 10?

The command line we'll execute first is the system file check (SFC). SFC can automatically scan for corrupted and missing system files, and repair or replace them in Windows 10.

What is bootrec.exe?

Bootrec.exe tool is used to troubleshoot and fix boot problems in the Windows Recovery Environment. Problems in a master boot record, a boot sector, and a boot configuration data store can be fixed by this tool.

How to open command prompt without desktop?

There is one way to open Command Prompt without entering the Windows desktop. Here are steps to do that when the computer fails to boot. Step 1: Reboot your computer. When the computer shows the Windows icon, press F8 constantly to show the "Windows Setup".

Where are startup folders located?

Since the user’s startup folders are in the system drive, so generally speaking, we just need to check the C drive.

Can Bootrec fix boot problems?

Please note that even if the Bootrec.exe tool can fix most boot problems, it still could not solve every possible error in a computer startup. Therefore, when it couldn’t work, proceed to the next one.

How to repair a Windows 10 image?

The DISM command tool for Windows 10 comes with three options to repair an image, including "CheckHealth," "ScanHealth," and "RestoreHealth," which you want to run in order. Depending on the severity of the issue, you can also use the "RestoreHealth" option to fix the locally available image using different source files.

How to check if a Windows 10 image is a Dism?

To check the Windows 10 image for issues with DISM, use these steps: Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to perform a quick check and press Enter: DISM /Online /Cleanup-Image /CheckHealth . Source: Windows Central.

What is DISM with RestoreHealth?

If there are problems with the system image, you can use DISM with the RestoreHealth option to scan and repair common issues automatically.

Why is my Windows 10 installation not working?

If Windows 10 is having problems, it could result from missing or corrupted files. This guide will show you the steps to repair the installation using the Deployment Image Servicing and Management (DISM) and System File Checker (SFC) command tools.

How to run deployment image?

To run Deployment Image Servicing and Management tool with an alternate source (install.wim) image, use these steps: Open Start. Search for Command Prompt, right-click the top result, and select the Run as administrator option. Type the following command to repair the Windows 10 image and press Enter:

What is checkhealth in Windows 10?

The CheckHealth option with the Deployment Image Servicing and Management command tool allows you quickly determine if there are any corruptions inside the local Windows 10 image . However, the option does not perform any repairs.

Is the NFL back on Windows 10?

After months of waiting through the offseason, the NFL is finally back this week. With these Windows 10 apps, you won't miss a snap of the N FL action.

How to run a command prompt as administrator?

Run Search and type Command Prompt. Find Command Prompt from the results, right-click it, then select Run as Administrator.

What to do if SFC fails to replace a broken file?

If SFC fails to replace the broken Windows file, you can try doing so manually. This is possible as long as you know where the corrupt file is located. You will also need a good copy of that file so it can be replaced. Open an elevated Command Prompt and type the following command: TAKEOWN /F <FILE LOCATION>.

Does Windows Resource Protection find integrity violations?

Windows Resource Protection did not find any integrity violations – Windows was unable to find corrupt files in your hard disk. Windows Resource Protection could not perform the requested operation – This means you have to run System File Checker using Safe Mode.

Does Windows Resource Protection fix corrupted files?

Windows Resource Protection found corrupt files and successfully repaired them – Windows found the broken files and fixed them. Windows Resource Protection found corrupt files but was unable to fix some of them — Windows found corrupt files but was unable to do anything about it.

How to open command prompt when you don't want to repair?

Also, if you don't want to perform Startup Repair, you can still open the command prompt window by pressing " Shift + F10 " in the first Install Windows screen. Then, it will automatically pop up.

When need to perform Windows 7 boot repair command prompt?

If you have Windows 7 boot problems, the boot sector or master boot record on your system partition may be damaged, corrupted, or has missing files. And you will receive an error message like the following before Windows actually begins to load.

How to backup my computer?

To backup your computer, you can download the backup software and open it. Then, click Backup, select System Backup and follow on-screen instructions to backup your computer. Also, you can choose other backup types.

What does C: mean in Windows?

Note: c: refers to the location of your Windows.

How to install Windows 7 on a USB drive?

Step 1. Create Windows 7 installation media on a working computer. You can download ISO image files from Microsoft Store and burn the ISO image files to a USB drive or CD/DVD via Windows 7 USB DVD download tool. Step 2. Plug the USB drive into your computer.

Can you repair Windows 7 startup?

If you can repair boot with command prompt in Windows 7, you are very luck. But, sometime, you will fail to repair startup issue. To ensure the security of your data and your computer, you'd better to create a system backup or disk backup in advance.

Can you restore MBR in Windows 7?

If you backup MBR in advance, you can use it to restore your computer and make it work as normal. If not, you can see the next part and learn to repair boot with command prompt in Windows 7.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9