Recovery of loading through the command line. Using the command line to restore Windows

First, let me remind you why you need to restore the system in operating systems under running windows. Using the built-in recovery utility, you can undo the changes that were made to the computer system in lately, namely:

1. Unsuccessful installation (removal) of programs;

2. Installing updates to the system itself, as well as updates softwareinstalled on your computer;

3. Unsuccessful installation (removal) of drivers;

4. When a computer is infected with viruses, when a window appears at startup, it says “windows is blocked, send sms ...”;

5. If it is not possible to start the task manager (again, due to virus infection)

And other problems starting windows.

If you have any difficulty in starting the computer in normal mode, then you can start recovery from command line  through a special mode called “Safe Mode with command line support”. In the operating systems of the windows family (especially in latest versions  - windows 7, windows 8) recovery is possible only from account  administrator.

Now we will go directly to how to start recovery using the command line:

1) When loading operating system  (before the welcome window appears) press F8. A window for selecting auxiliary windows utilities. Select "SAFE MODE WITH SUPPORT OF THE COMMAND LINE". (I draw your attention to the choice of items, there is a simple Safe mode (or Safe Mode in another way), and there is a little "advanced" - "Safe mode with command line support" - be careful, choose this one. This is why it is called safe that allows you to solve various problems. safe mode  launch windows systems  runs with a very limited set of files and drivers, and programs do not start automatically (this means that those programs that start first under normal windows startup, they don’t start through safe mode), in another way, a standard set of drivers is installed, which are necessary only to start Windows).

2) At the command prompt, enter

X: WINDOWSsystem32Restorerstrui.exe

  (where X is the drive where the system itself is installed) and press Enter.

3) The "System Restore" window opens, where you select the "Restore the computer to an earlier state" item.

4) If all of the above items are correctly executed, the system will launch an earlier version of the saved registry on the computer (provided, of course, that you yourself did not disable system recovery in the system settings, otherwise this command will be useless).

5) If the computer was infected with viruses, then system recovery will not save you from them 100 percent. It will be necessary to scan (selecting the “Safe Mode” item when the F8 system boots up) all disks with an antivirus program (the choice of antivirus program is yours).

It must be remembered that starting system recovery through safe mode is an irreversible process. Changes that will be made during the recovery process will no longer be undone. If the recovery process does not satisfy you, then you will only have the opportunity to launch ANOTHER POINT for recovery, provided, of course, if it exists.

Windows rollback helps to quickly fix system errors that lead to unstable XP. Usually, the rollback starts in the Windows environment, but if the system has stopped working correctly or loading, then you can perform recovery through the command line.

When do you need a Windows rollback

Windows XP recovery will be needed in the following cases:

  • Startup problems.
  • Incorrect installation (removal) of programs.
  • A sharp decrease in computer performance for unknown reasons.
  • Missing desktop with all the shortcuts.
  • Incorrect driver or system updates.
  • Damage system files  and registry files.
  • Infection with viruses that block the entrance to Windows.

In these cases, a rollback helps to troubleshoot and return Windows to working condition, however, is not the only possible solution to the problem.

Launch command line

Consider a simpler option - Windows XP boots up, but you cannot run the tool to return the system to a healthy state: for example, Explorer or the Start menu does not work. To roll back:

You can start the recovery directly through the Run menu, without using the command line. Press Win + R and enter "rstrui.exe". A rollback wizard window will appear, through which you indicate to which date Windows XP should be returned in order to eliminate errors in its operation.

After the computer restarts, the problems should be fixed. If the problem persists, then you will have to resort to using more powerful tools: for example, the recovery console, which starts with installation media  Windows XP

Safe mode

If system errors do not allow Windows XP to boot correctly, then try to start recovery through safe mode with command line support.


An interpreter window will appear. windows commands. To start XP recovery, enter the command "rstrui.exe".

A wizard window will appear, through which you can return the system to the saved key date, when Windows worked without errors.

If after a rollback of the system errors in Windows are not resolved, then you should try to return to an even earlier state.

System recovery through the command line in safe mode is an irreversible process. The user's personal files will remain untouched, but the programs that were installed after the selected control point will be deleted or will not work correctly, so they will have to be reinstalled.

Hello dear friends! Recently, such a misfortune happened to me: I installed drivers on the chipset, and after rebooting the PC started to “slow down” a lot. Whatever I did, nothing helped. The only way out was to roll back the system. But here it’s not so simple. Therefore, I want to tell you how to turn on system recovery so that you can use this function to save the situation.

There are several methods available in Windows 10 that help restore the system. Now we will consider each of them.

If you used this method in previous versions  operating system, then difficulties should not arise.

Rollback to saved points helps to return to an earlier configuration, undoing all changes made. The creation of such "points" occurs automatically as soon as certain actions are performed in the system (installing updates, drivers, software). But you can create it with “pens” through the “System” menu on the “Protection” tab

By the way, did you know that in the “top ten” the System Restore function is disabled by default? Why developers did this is unknown. But we strongly recommend that you enable this mode. To do this, just download “Control Panel” and go to “Recovery Settings”:

We immediately warn that the control images take up a lot of space on the hard drive, therefore, if you are the owner of a budget laptop or stationary PC, you should periodically delete obsolete points.

With the advent of the “dozens,” many new, more effective methodsto help roll back faster.

Manual update uninstallation

If errors occurred after installing the service packs from Microsoft, you can open the list of installed components, calculate the most recent ones by date and remove them. After that, be sure to restart the PC.

If the problem lies in the drivers, then you can fix them in the “Device Manager”.

Safe mode

Did you know that you can get into safe mode this way. Run the command line and write in it:

shutdown.exe / r / o

The system will reboot and you will immediately enter the system recovery mode. Well, you can and the old fashioned way, just when loading, press F8 on the keyboard, go to the menu "Advanced startup options". There we select the appropriate item and wait for the launch. As soon as you see the desktop on the screen, then everything went fine. Now you can "play around" with the removal of updates, drivers, or try to recover from the checkpoint (if it was created).

Reset

Does that sound scary? We assure you, this is a very effective, almost painless way that will help restore all settings to the factory settings, saving all your personal files. But installed programs  (games) will be deleted. This is the only and not so big drawback of the method.

To use it, go to the "Options". Not sure where this menu is? Just click on "Start" and you will see the desired item below.

Select "Recovery" from the side list. Here you will have access to two ways to solve the problem:

  • Reset PC (with saving files and then reinstalling Windows);
  • Return to the previous successful OS build.



Usb drive usage

A fairly simple and convenient way to solve the recovery problem, the essence of which is to run auxiliary utilities from a flash drive. Just don’t say you don’t have external storage  with a backup system image! As always, you wanted to create a bootable USB flash drive for such cases, but for some reason put off this action until later. And then the “then” arrived.



Alternatively, you can use another PC to create a recovery disc. If you are prudent, prepared in advance for a computer mini-apocalypse, then insert the media into uSB portreboot and enter bios. Select booting from an external drive. Remember to save your changes before exiting. And then just use the tools that will be downloaded from the disk. It can be utilities for recovery or full reinstalling windows. You can learn more details from our article, which is fully devoted to this topic.

Did you even make yourself backup  Windows 10? Can we do it together?

Method via command line

Start in safe mode with command line support and enter the following command.

Thanks to it, you can start system recovery from the command line.

I hope I was able to help you deal with problems in Windows. I will be glad to comments and questions to the article, as well as recommendations on social networks.

Respectfully,
  Victor

By creating a breakpoint. This method is quite simple. But what if you roll back the system to an earlier state standard way  fails? In this case, the use of the command line will be appropriate.

The nuances and methods of restoring a Windows 10 system through the command line

Restoring Windows 10 through the command line without a previously created image or distribution is not possible. Therefore, if you encounter an error that you cannot fix and you can start the OS rollback only through the console, you should use the installation disk or a USB flash drive.

If you plan to roll back Windows 10 through the command line in the future, you should create a backup image of the system. To do this, do the following:

  • Open the command line with administrator privileges. Click “Win \u200b\u200b+ R” and enter “cmd”.
  • The console will open. Enter "mkdir c: \\ Imagen-Restaurar", where C is the letter of the disk on which the Windows 10 image will be stored, and Imagen-Restaurar is the name of the copy folder.


  • Next, enter “recimg / createimage c: \\ Imagen-Restaurar”. This command creates the image itself and places it in the specified folder. The process of creating a copy may take some time and even freeze by 1%. However, you do not need to press the buttons or turn off the PC. After copying is complete, go to the specified folder and check for the presence of the "wim" file. If it is, then the image was created correctly.

Now, to restore the system itself, you can use the following methods.

Method number 1. Using bootrec.exe Utility

  • Boot from installation disk. We select "Diagnostics", "Additional parameters", "Command line".

  • In the console, enter bootrec.exe. An instruction will appear describing the actions of each of the teams.
  1. FixMbr - used when boot sector hard drive  damaged. By entering a command, the program will automatically correct errors and the user will be able to log into Windows 10 in normal mode;
  2. Bootcfg - a command to resolve missing issues boot file  boot.ini. To restore Windows 10, it is worth entering “Bootcfg / rebuild”;
  3. CD repair copy SYSTEM C: \\ windows \\ system32 \\ config - command to fix errors with a damaged config file. After entering it in the console, requests will appear on the monitor screen. For all you need to put the answer “Yes”, that is, enter the letter “Y”.
  • Copy D: \\ i386 \\ ntldr C: \\ is the command to fix the "NTLDR is missing" error, where D is the letter of the disk on which the system image is stored, and C is the disk with the operating system.

Method number 2. Restore Windows 10 with backup

If you previously created control point  system recovery or you have a backup image of Windows 10 from which the system can get the missing files, you should do the following:

  • We reboot the Windows 10 PC in safe mode with command line support.
  • We launch the console and enter "rstrui.exe".
  • Will start standard recovery  system.

If you can’t roll back Windows 10 through the command line, you should check the integrity of the bootloader.