Recovery windows 10 from cmd

How to Repair Windows 10 Using Command Prompt (5 Ways)?

When your computer won’t work properly, you can learn how to repair Windows 10 using command prompt from this article.

By AOMEI / Last Updated March 9, 2021

How do I repair Windows 10 with command prompt?

When there is some problem happens to Windows, you can repair your windows with some basic repair like Windows directory repair, boot directory repair. When the error is too serious, you can run advanced repair like system restore. For Windows 10, you can also use DISM command line utility to repair Windows 10 image. Next, this article will introduce you how to repair Windows 10 using command prompt with five methods.

Method 1. How to repair Windows 10 using SFC?

SFC (System File Checker) is a command-line utility that can scan for corruption in Windows system files and replace any corrupted or missing protected system files with a known good version. When you feel buggy with your computer or notice problems during boot, you can use SFC to diagnose problems and repair it.В

To repair Windows 10 using SFC with detailed steps:

1. 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. In this situation, you can use DISM to repair the Windows image.

Method 2. How to repair Windows 10 using DISM?

Windows 10 includes a command-line utility known as DISM (Deployment Image Servicing and Management). DISM command Windows 10 can be used to repair and prepare Windows images, including, Windows Setup, Windows Recovery Environment, and Windows PE. Also, DISM can be used to fix the recovery image within an installation of the operating system.

To repair Windows 10 using DISM commands:

To check whether there is any corruption, Run command line as administrator, then type the following syntaxВ and press «Enter».

DISM /Online /Cleanup-Image /CheckHealth

To scan the Windows image for any corruption, type below command and hit «Enter».

DISM /Online /Cleanup-Image /ScanHealth

To fix Windows image, type the following command and hit «Enter».

DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim

Method 3. How to reset Windows 10 with command line?

To reset Windows 10 with «Reset this PC», follow the instructions below:

Type “systemreset -cleanpc” in an elevated command prompt and press «Enter».В (If your computer cannot boot, you can boot into recovery mode and select «Troubleshoot», and then choose «Reset this PC».)

Читайте также:  Тема для виндовс 7 как mac os

Method 4. How to run system restore with command prompt?

If the problem is too severe, you can try to restore your Windows 10 to the previous state as long as you have enabled system restore. But, it willВ notВ restoreВ documents, music, emails, or personal files of any kind. If this is what you need, see below.

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. Once the command prompt is showing, enterВ «rstrui.exe» at first in the Command Prompt Window andВ press «Enter» to continue.

4. This command will bring you to the interface of System Restore. You can either use the recommended restore point or click «Next» to choose an available restore point. Then, follow the instruction to complete system restore.

Method 5. How to repair Windows 10 with AOMEI.exe?

Besides system restore, you can also repair Windows 10 with AOMEI.exe. AOMEI Backupper is a reliable backup and restore software which is designed for Windows 10/8/7/XP/Visa. You can either backup and restore from graphic users interface or command line. It has some features that Windows built-in tool does not have. For example, you can use AOMEI Backupper to create incremental backup, and you can restore to a dissimilar hardware.

Suppose you have created system image backup with AOMEI Backupper. Before restoring system, you can use a utility named Check Image to check if system image backup is intact and without error.В

Then, use the following steps to restore windows 10 with AOMEI.exe:

1. Navigate to AOMEI Backupper installation directory by typing the following command in command line and press «Enter». For example: cd C:\Program Files (x86)\AOMEI Backupper.

Note: If you run this command under Windows PE environment, the drive letters might change.

2. Run the following command to start restore: AMBackup /r /t [backup type] /s «[backup location path]» /d [destination location]. For example: To restore the system backup saved in J:\systembackup1 to disk 1. You should type the command: AMBackup /r /t system /s “J:\system backup\systembackup1.adi” /d 1

Tip: If you need to restore to another computer, AOMEI Backupper «Universal Restore» feature can make this very easy. For example: Run system restore in the image named «systembackup1.adi» to the partition 0 on disk 0 and perform a universal restore. AMBackup /r /t system /s «D:\system backup\systembackup1.adi» /d 0:0 /x

Now you have learned how to repair Windows 10 using command line with five methods. You can choose one based on your preference. It is also suggested to keep backup software AOMEI Backupper installed on your computer to provide continuous protection (try 30-day free trial).В

Also, you can find «Recovery Environment» utility in «Tools» toВ enable the boot option of AOMEI Backupper recovery environment. When system crashes, it enables you to perform backup/restore from boot easily.

If you want to protect unlimited computers within your company, you can pick AOMEI Backupper Technician. 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.

Восстановление системы Windows 10 с помощью командной строки

Для начала давайте вспомним, что нам дает восстановление операционной системы через командную строку и не обязательно windows 10 , и почему именно этот метод должен использоваться. Учитывая то, что процесс отката системы до последней удачной конфигурации делается не для хорошего настроения, а чтобы восстановить работу машины. Случается так, что при запуске винды начинается бесконечный сброс и рестарт, или на весь экран у вас баннер с просьбой оплатить штраф или налог, неудачно прошло обновление или установка драйвера – список можно продолжать долго. Именно в вышеперечисленных ситуациях, требуется «Безопасный_режим_с_поддержкой командной_строки» через которую мы и сможем восстановить систему Windows 10. Хотелось бы начать не с самого процесса возврата к жизни нашей ОС, а с того – чтобы было с чего возрождать – точка восстановления.

Читайте также:  Отслеживание времени работы windows

Точка возврата из среды восстановления

Раз уж мы говорим о cmd, то и расскажем о возможностях создания через командную строку точки восстановления в Windows 10 – это не единственный способ. Прежде чем приступить к созданию полной копии системного раздела со всем содержимым – нашу рабочую версии виндовс, нужно перезагрузить компьютер особы методом:

  • «Пуск» → Удерживайте [Shift] и нажмите мышкой на «Перезагрузить»

  • В появившемся окне выберите «Поиск и устранение неисправностей»

! В случае, если у вас установлен пароль при входе в систему и учетных записей больше одного, перед загрузкой cmd появится дополнительно от 1 до 2-х экранов:

  1. С просьбой выбрать учетную запись
  2. Поле для ввода пароля, если в учетке он установлен

Давайте введем по порядку команды, чтобы правильно сделать копию.

  • «diskpart» и жмем [enter] – отображает все разделы жестких дисков и их состояние.
  • «list volume» и [enter] – выдает список в котором нам необходимо запомнить букву, присвоенную системному диску, так как системное отображение и буква из графической оболочки не всегда совпадают.
  • Вводим [exit] и [enter]

В windows 10 есть полезная утилита — «dism.exe», которая создает образ винды и с помощью командной строки восстановливает систему, следуем инструкции:

dism /Capture-Image /ImageFile:D:\Win10refr.wim /CaptureDir:E:\ /Name:”Windows 10”

Наберитесь терпения, вот резервная копия будет готова.

На этом создании backup завершено, выходите из режима восстановления системы.

Резервная копия из виндовс

Создать точку восстановления из командной строки можно и в самой Windows 10, для этого нам необходимо запустить консоль посредством горячих клавиш, далее по инструкции:

  • [Win] + [X] → «Командная_строка (Administrator)» → OK

Теперь будем создавать директорию для копии винды, вводим:

  • «mkdir С:\Imagen-Restaurar» и жмем [ввод]

Ничего происходить после ввода не будет – консоль вернет ответ, только в результате завершения. Поэтому на протяжении от 20-ти до 30-ти избегайте каких-либо манипуляция с компьютером.

Хотелось бы отметить, во избежание ошибок – не ставьте пробелы между словами, заменяйте «-»; ни при каких условиях не меняйте наименования директорий, чтобы не былол сбоя.

Здесь, «С:» — будет копия — выбираете самостоятельнопуть записи, будь-то внешний винт, или другой local disk. А «Imagen-Restaurar» — имя папки. После появления надписи об удачном завершении, удостоверьтесь на месте ли «CustomRefresh.wim», если его не оказалось, restart и повторяйте попытку.

Запускаем system recovery из консоли

Через командную строку — восстановить систему Windows 10, можно двумя способами.

Важно! Если виндовс рухнул вследствие вирусной атаки, прежде зайдите в «Safe_mode» (безоп. режим), проведите глубокий анализ антивирусом.

  1. Если только доступен safe_mode c консолью – нажатие [F8].
  • Вбейте: «rstrui.exe» → «Восстановление_системы» → пункт «Восстановление_более_раннего_состояния_компьютера».

Запомните, что после recovery изменить уже нельзя ничего, только после полнового recovery, сможете выбрать другую версию, которая есть.

  1. В зависимости от того, куда была записана копия виндовс – этот носитель должен быть вставлен в компьютер и далее пошагово:
  • Пуск» → Удерживайте [Shift] и левым кликом «Перезагрузить»

  • пишем «bootrec.exe» → жмем [_enter_]

Встроенная утилита, исправляющая ошибки с рядом инструментов, одну из них надо указать при запуске recovery. Скришоте ниже.

Кроме того, на нашем сайте можно ознакомиться:

Читайте также:  Создание контроллера домена под windows server

Комментарии (3)

есть команда включить все галочки (подключиться автоматически) к WI-FI ?

Спасибо за информацию! Спасибо огромное. Восстановил систему только через командную строку. Даже через среду восстановления запуск windows и команды восстановления к заводским настройкам не работали.

А именно через какуюкоманду, он о нескольких рассказывает

How to Repair Windows 10 using Command Prompt?

This post all talks about how to repair Windows 10 using the command prompt.

David Darlington

Dec 21, 2020 • Filed to: Windows Computer Solutions • Proven solutions

With the rising popularity of Windows 10, most computers are installed Windows 10 OS. Windows 10 possesses excellent stability, but in some cases, you may still encounter various Windows errors like failure to boot, blue screen issues, even crashing. For this kind of instance, we have to repair it. Fortunately, Windows provides a command-line tool to help you to solve all kinds of system issues. By following the below steps, you can learn how to repair Windows 10 using Command Prompt.

Part 1. How to Repair Windows 10 using Command Prompt

Windows 10 provides a very useful command-line tool to help you repair your system.В We just need to enter the recovery mode of the system. In most cases, we can enter the recovery mode with just simple steps when you are not able to boot your computer in the usual manner.В You can follow the steps below to enter the recovery mode of 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. Then click Restart now button. The computer will boot into Windows Recovery mode automatically.

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. Next, repeat this operation 3-4 times until seeing the Recovery mode screen. Then select Troubleshoot > Advanced options > Command Prompt.

Step 2. Using Command Prompt to repair Windows 10

Once you launch the Command Prompt tool, enter the following command:

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.

By following these steps, you would be able to learn how to repair Windows 10 using Command Prompt. Though, if you can’t access your important data files due to a malfunctioning system, then you can follow the next tutorial.

Part 2. How to Repair and Recover Windows 10 with Bootable Media

We are sure that by following the above-mentioned solution, you would be able to learn how to repair Windows 10 using Command Prompt. If your system is working flawlessly, then you don’t have to worry a bit. 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.

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

Оцените статью