I deleted the Windows 7 system file, what should I do? Using bootable media. Recovering system files manually

The problem of treating damaged Windows 7 files is solved in several ways. The simplest option is to roll back the system configuration to one of the previous working states. However, this is not always feasible, since the corresponding function can be disabled by the user, and control points can be deleted. In addition, recovery will differ depending on whether the corrupted data allows the system to boot or not.

Using the Command Line

If the system files have not been damaged so much as to prevent the system from booting, you can try to restore it to full functionality by entering the command line in the standard way:

  1. Press Win and R at the same time, and in the Run window, write down the cmd.exe command. You can also get to the line through the start menu.
  2. Enter sfc /scannow and the scan will start.

When the Run window opens, make sure that there is a line under the input field notifying the user that the command is running with administrator rights.

This line may not appear due to User Account Control being enabled.

Then, after running the sfc /scannow command, you will only be able to see a black window for a moment, which will immediately disappear and the scan will not be carried out.

To avoid this, you must either disable windows control accounts, or run the application as an administrator by selecting the appropriate item in the context menu when right-clicking on the command line program icon.

If the program does not detect an error, a corresponding message will be displayed on the screen upon completion of the check. The utility will also notify you about the detection of various types of errors, which it will try to automatically correct. Next, you only need to reboot the device, after which the problems when accessing the system should disappear.

Sometimes the utility cannot normal mode deal with fixing damaged important files. You need to do the following:


The application will most likely be able to solve the problem and the system files will be fixed.

If you can't log into Windows

Damage significant files may be such that log into the OS in the usual way will be impossible. In this case, use the standard Windows 7 recovery environment, which can be accessed in the manner already described via F8 or via installation disk or boot. You can create the latter in advance using the OS itself.

A boot disk may be needed in case of serious damage to the file system, when without it it is impossible to boot not only the system, but also the environment in which the OS can be restored. The emergency storage is used as follows:


The program will scan the system and, if necessary, replace all damaged files, after which the system will operate normally.

If you are not using a boot disk, then in the boot options window that opens after pressing F8 when turning on the power, you will need to select the first troubleshooting item. After this, you will be taken to the options window discussed above.

How to find out the letter of the system partition if you have forgotten it

If you suddenly cannot remember the letter of the partition with windows installed, you can find it directly from the command line. For this:

  1. IN command line write down the line notepad, the standard “Notepad” will open;
  2. In the menu at the top, select “File”, in the list, click on the “Open” command;
  3. In this way, you will be taken to the usual Explorer, where in “My Computer” you can see all your disks and partitions.

Partition letters can be found out even easier using one of the standard commands:

  1. At the command prompt, type Diskpart.
  2. After pressing Enter, write down the list disk command, the screen will show all the physical disks installed on the device, each of which will be assigned a number starting from zero.
  3. Using the select disk command with its serial number, select the required drive. If physical disk only one, enter select disk 0;
  4. Next, write down the detail disk - it will be displayed detailed information about the disk and all its partitions.

You can select the desired section based on its size, which will be indicated in the table at the bottom of the window.

System rollback to fix important files

This the simplest way restore damaged Windows 7 system files. To use it, the protection function must be enabled for the system partition of the disk. You can check this in the system properties window, which is easy to access from the control panel.

Here, when you select a partition and click the “Configure” button, you can go to the recovery options. The line for restoring parameters should be highlighted and earlier versions files. In this case, rolling back to the old checkpoint can lead to the resuscitation of important files. In addition, they can be restored separately if, for example, in the context menu of a folder with deleted data, select the option to restore the previous version.

You can roll back to a restore point previously created by the system as follows:


After re windows loading, if you selected the checkpoint correctly, problems with unstable operation of the OS due to the fact that system data was damaged will be completely resolved.

recoverit.ru

Recovering damaged files in Windows 7 and Windows 8

Restoring a working system configuration is an interesting, but very voluminous topic. Even a simple question at first glance, how to recover damaged Windows 7 files, has several solutions that can be implemented different ways.

The most convenient and easiest method for users is to use the system restore function, which allows you to roll back the configuration to the last working state. But what if this useful feature disabled or checkpoints removed?

The system is booting

If damaged files do not prevent the system from starting, then you can try to restore its functionality using the command command windows strings.

If the system files are ok, you will see a message like this:

If the utility detected Windows errors and was able to fix them, the following notification will appear on the screen:

In any case, the system files have been restored. Now you can restart your computer and enable the function of creating restore points, which will greatly simplify the process of rolling back the system to working condition.

Sometimes users encounter corrupted files in normal mode using sfc utilities.exe files are not restored. If such a problem occurs, you need to restart the computer, start the system in safe mode with command line support and try running the sfc.exe utility again.

System won't boot

If the computer refuses to boot, you will have to use the recovery environment to restore functionality. You can launch it in two ways:

  1. By pressing the F8 key when turning on the computer.
  2. Using the installation disk or flash drive.

The first option works if a boot partition was created when installing Windows and partitioning the disk. If you don't know what this is, still try pressing the F8 key several times when you start your computer. A window with additional download options will appear on the screen, in which you need to select the “Troubleshooting” option.

So, you are at the command prompt using the first method to launch the recovery environment. In it you need to enter the command sfc /scannow /offbootdir=D:\ /offwindir=D:\windows.

After a short wait, a message will appear on the screen indicating that the files were successfully restored.

Attention! In the body of the command, instead of the letter “D”, you indicate the designation of your disk on which you recorded operating system.

If it suddenly happens that you cannot remember the letter of the partition with windows installed, try the following options for viewing it:

Another way to find out the letter is to use the Diskpart utility.

By the size of the partition you can easily determine which one the system is installed on.

Using bootable media

If you can’t get into the recovery environment using the F8 key, try using an installation disk or flash drive. To do this, you need to configure the BIOS by setting the boot priority.

Enter the command sfc /scannow /offbootdir=D:\ /offwindir=D:\windows and wait until the system file recovery process completes.

windows 8

Users who want to recover damaged files on Windows 8 or 8.1 can use another method to restore the storage to functionality backups system files and replace damaged data.

windows PowerShell

If the system starts, try opening through the Start window or Start menu PowerShell utility. You need to run it with administrator rights.

In the window that appears, enter the command “Online /Cleanup-Image /RestoreHealth”. If the backup storage is intact or can be restored, you will see a message like this:

After the reboot, you need to launch the command line using one of the methods described above and try to restore files using the “Sfc” utility.

Using a windows distribution

If Windows PowerShell cannot restore the storage on its own backup files, you can try using a disk image with the Windows 8 distribution.

  1. Download the original version of windows 8 and mount the ISO image.
  2. Launch Command Prompt. Using the command “Dism /Get-WimInfo /WimFile:F:\sources\install.wim” see which OS editions are in the image.
  3. Launch PowerShell and enter a command like “Repair-windowsImage -Online -RestoreHealth -Source F:\sources\install.wim:1” in the utility window, where “F” is the letter of the mounted image, and “1” is the number windows edition.

If the first edition doesn't work, try another version. After restarting the computer, try again using the command line to scan the disk and restore files.

mysettings.ru

Recovering system files. How to recover deleted or damaged system files in Windows XP, Windows 7?

Quite often it happens that it is necessary to restore damaged, deleted system files in Windows. Damage and deletion of system files are caused by viruses, inexperience of users using the operating system and a number of other factors, when the computer is turned off incorrectly, etc.

In this article I will tell you how to restore system files in Windows. By following these instructions, you can always restore almost any system file. Therefore, try to delve into the article, understand what’s what...

#1 Recovering system files in the Windows XP operating system! When you know which system files need to be restored.

If your computer stops booting after an incorrect shutdown of the computer (power outage, button shutdown), first of all you need to check HDD for logical errors.

The process of restoring system files in the Windows operating system involves copying the necessary system files from the Windows XP installation disk. The “I386” folder of the windows distribution contains all the system files of the operating system. They are written in compressed form and have an extension like “.dl_” “.ex_” and so on. That is, the last character is replaced with an underscore.

We need to unpack the files removed from the system from the windows installation disk into the folder where they should be located. If you do not have a windows distribution, you can download the “archive with folder I386” (click here: LetitBit.net) or (click here: DepositFiles) for the 32-bit version of windows XP.

To restore system files you need to boot from a bootable CD, for example " ERD Commander"or "LiveCD by Alkid".

Now let's get down to it important stage. How to unpack system files from a Windows installation disk, using the example of restoring the file “C:\windows\System32\userinit.exe”, quite often this file is replaced by ransomware viruses, banners that block Windows. The process of restoring system files from the installation disk is no different for other files. The main thing is to have information in which folder this or that file we need should be located.

Boot from the “ERD Commander” disk. Select the download “ERD Commander 5.0 for windows XP”. In the window that appears at the end of the download, select the path to the installed Windows OS and click “OK”.

Open “My Computer”. Insert the Windows installation CD. From the “I386” folder, copy the necessary system files with the extension “dl_” or “ex_” to the folder where they should be located on the installed system. In our case, this is the file “USERINIT.EX_”. Copy “USERINIT.EX_” from the “I386” folder to the “C:\windows\System32\” folder. To do this, right-click on the “USERINIT.EX_” file and select “Copy to” in the context menu.

In the window that appears, select the path “C:\windows\System32” and click “OK”.

After the system file is copied to the folder we need, we need to unpack it. Unpacking system files with the extension “dl_” or “ex_” from the windows installation disk is performed using the “expand” command.

Command syntax: "expand [source file] [target file]"

To run the command, you must launch a command prompt. In the “Start” menu, select “Run”. In the window that appears, enter the command “cmd” and press “Enter”. In the command line window, enter the command to unpack our file: “expand”

  1. "c:\windows\system32\userinit.ex_"
  2. "c:\windows\system32\userinit.exe"

and press “Enter”.

Unpacking will be completed, as evidenced by the text: “c:\windows\system32\userinit.ex_: 11863 bytes expanded to 26624 bytes.” System file recovery was successful. Now you can restart your computer.

That's all! All other system files in the Windows XP operating system are also restored

No. 2 How to recover damaged system files in the Windows 7 operating system?

Now let's look at the process of restoring system files in Windows 7. It differs from restoring system files in Windows XP.

We boot from the “ERD Commander” disk (select the version for seven in the disk menu when loading). You can download the “ERDC.iso” disk image here (click here: LetitBit.net) or (click here: DepositFiles.com)

When asked about setting up the network, answer “Skip” and confirm the reassignment of drive letters, after which we select the path as the windows folder.

The next thing we do is launch the “MSDaRT” recovery toolkit.

To continue the wizard, click “Next”

Select “Scan and ask before fixing” and click “Next”

The process of searching for damaged and deleted Windows 7 system files will begin. It may take some time (from 5 to 30 minutes). After the Operating System is scanned, a list of damaged or deleted files will appear. We put a check mark on the files that we want to recover and click “Next”.

The process of restoring Windows 7 system files will start, after which a window with the recovery results will appear. Click “Next” and in the next window “Finish”.

Now close the Windows 7 (MSDaRT) system recovery tools by clicking the “Close” button and clicking the “Restart” button to reboot.

Be careful when choosing files to restore if you are using a pirated version or build of Windows 7. Some system files may be changed in it so that Windows does not require activation.

The recovery wizard will consider these files corrupted and replace them with the original ones, as a result of which Windows may begin to display a message about a non-licensed version of Windows when loading.

If you are restoring system files after removing the banner, select the system files to restore from the table below.

Windows system files and the folders in which they should be located

Below are some windows system files and the folders where they should be located. Keep in mind that if you find the corresponding file and it is located in a different folder, most likely it is a virus. (except for the folder: c:\windows\system32\dllcache).

File Folder
explorer.exe c:\windows
iexplorer.exe c:\windows
regedit.exe c:\windows
notepad.exe c:\windows
userinit.exe c:\windows\system32
taskmgr.exe c:\windows\system32
taskman.exe c:\windows\system32
cmd.exe c:\windows\system32
logonui.exe c:\windows\system32
winlogon.exe c:\windows\system32

evgmoskalenko.com

Recovering Windows 7/8 system files

Hello readers of the blog of the ComService company (Naberezhnye Chelny)!

Recovering Windows 7 or Windows 8/8.1 system files most interesting topic. Especially if the operating system starts to fail, but we don’t have a recovery image and we forgot to turn on system protection so that recovery points can be created. In this case, we will not be able to restore the system from the image, we will not be able to roll back windows to the created restore point, and we are also too lazy to reinstall the system, since this will take the whole day. And right here we have another chance to return Windows to normal - try to restore system files. In this article I will try to fully cover the topic so that we can revive our computer in any situation.

Article structure

Conclusion

1. Recovering system files on a busy system

If our computer somehow turns on, then we do the following. (if it does not turn on, see section 2 of this article)

Open the Start menu. In the search field we write “Com”. On the “Command Prompt” element, right-click and select “Run as administrator“

In the command line that opens we write

We wait a bit

If your system is in order, you will see next image

If your windows was broken, you will see the following

System files were successfully restored. We reboot and immediately turn on system protection to create restore points so that next time we can simply roll back the state of the computer to a couple of days ago and that’s it.

It happens that when scanning the system, the sfc.exe utility found damaged files, but could not fix them. In this case, I would restore system files in Safe Mode. If the same thing happens in safe mode, read the last paragraph 4 of this article.

If your computer does not boot at all, as discussed at the very beginning of the article, then read the next paragraph.

2. Recovering system files in a recovery environment

If our computer does not want to boot at all, then we use the recovery environment. You can load into it:

  1. Pressing F8 several times when turning on the computer
  2. Booting from a boot (installation) disk or flash drive

The first option will work if we have a boot partition that the system created when partitioning the disk when we installed the system. Boot partition size in:

  • windows 7 - 100 MB
  • windows 8 - 350 MB

In any case, try pressing F8 several times during boot. A window should appear with additional download options. Select Troubleshoot computer problems

In the next window, select the keyboard input method. Select the language in which your administrator password is set (if there is no password, you can immediately click Next >)

Select a user with administrative rights Enter the password if you have one. If there is no password, just click OK

And as you may have guessed, select the command line

If you are unable to enter the recovery environment using the F8 key, you will need to boot from the installation (bootable) flash drive or disk. How to boot from a flash drive - here. You can boot from disk in the same way. Only in this case you need a DVD-RW (drive for reading optical disks) set the download priority to first.

I like to boot from removable media using boot menu. In maternal ASUS boards it is usually called by the F8 key.

After booting from a flash drive or disk, I saw the following picture. I choose windows Setup - Installing windows

Select System Restore

We wait until all installed windows are found

We choose the one that does not turn on for us. And here CAREFULLY! We remember the letter that the recovery environment assigned to your system (in the Folder column). I have this D.

Select Command Line

Enter the command

sfc /scannow /offbootdir=D:\ /offwindir=D:\windows

Instead of D you substitute your letter

press Enter and wait for the scan to complete

On virtual machine where the screenshot above was taken from was blue screen, so I was not surprised that system files were found and restored.

3. How to find out the drive letter with windows installed

If you were able to use the F8 key to bring up the “ Additional options download" and select "Troubleshoot computer problems", then we need to find out the drive letter where Windows is installed, which was assigned by the recovery environment. This can be done in two ways

1. Call the notepad with the command

In Notepad, open the File menu and select Open...

On the left, click Computer and in front of you will be disks with letters

You can go to the disk and make sure what and where.

2. Use the DISKPART utility

On the command line enter

diskpart - call the utility for working with disks

list disk - view the list of disks

select disk - select the hard drive I need

detail disk - call up information about this disk

4. Recovering system files manually

If using the sfc utility it was not possible to restore broken files, you need to try to do it manually. In this case, you need to additionally run the command

findstr /c:"" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

and carefully examine the sfcdetails.txt file on your desktop.

It should be something similar to the picture below

Once the name of the damaged file is known (Accessibility.dll), I would look for the same one in the distribution and replace it. In this case, naturally it will be necessary to obtain full rights per file. And before you boot into Windows and get rights to the files, you can try to copy necessary files using notepad launched from the recovery environment (how to do this was written above).

Conclusion

Friends! Everything written above about restoring system files in Windows 7 is also true for Windows 8. And, I would also use the following command for Windows 8

I haven’t tried this command myself, but if the system doesn’t boot, it certainly won’t get any worse.

Unstable problem windows work 7 is often associated with corruption or deletion of system files, for example, after reinstalling or installing an infected program. This is not the most complex problem- there are many ways to recover data standard means OS or manually. The simplest and effective options Let's look at it further.

Rollback to last stable state

By default, in all Windows, protection is active for system partitions. It is responsible for creating special checkpoints containing configuration information and system files of the environment before modifying it - installing applications, drivers and updates. Moreover, recovery points are created without such a reason by the system with at certain intervals or by the user himself.

If problems began to appear relatively recently, and you remember the approximate date of their appearance, then The best decision- roll back the OS to the moment when no failures were observed during the operation of the OS.

In a production environment this is very easy to do:


All that remains is to reboot, after which the damaged system files will be replaced with previous working versions.

If windows won't boot

Even if the damage to system data is so serious that the OS cannot boot on its own, you can use restore points:


The corresponding control point selection utility will launch, which you need to work with in the manner described earlier.

If pressing F8 does not open the boot options window, you will only be able to get into the recovery environment if you use the boot/installation disk.

Using the standard SFC utility

This application checks and repairs basic OS system files. It can also be run on the command line with boot disk, from the window for selecting boot options after pressing F8 and from a running system. The last option is the simplest:


Once the operation is complete, SFC will notify you of the results - the corrupted data should be detected and corrected.

Recovering data manually

Sometimes the methods described above cannot fix the problem. For example, when updating DirectX from distributions shipped with various applications, DLLs are often lost. Therefore, always try to update DirectX from the office. Microsoft website, and if trouble has already happened, then if there is new version all DLLs will be updated automatically after installing a fresh component package from the website http://www.microsoft.com/ru-ru/download/confirmation.aspx?id=35.

If there is no new version on the specified page, then any DLL from another source can be transferred to your system yourself. Libraries are stored in the following directories:

  • for windows 7×32 - in the folder C:\windows\System32;
  • for windows 7x64 - in the C:\windows\SysWOW64 directory.

If, when you launch an application, a window appears informing you that a DLL is missing, and the installer from the Microsoft website reports that you have the latest version of the libraries on your system and does not update the components, then you can simply use search engine. Find DLLs on the Internet and move them to the specified folders.

Not only DLLs, but also any damaged system files can be extracted from the Windows 7 installation distribution. To do this, you just need to know which files are damaged. Often the OS itself informs the user about the absence of a DLL or about an application error, for example, Explorer.exe. You can get the information yourself.

Let's find out what system information is faulty

To do this, you will again need the command line; we have already described how to open it. Write the following command here:

indstr /N:"" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt", where N is the drive letter.

Press Enter, after which sfcdetails.txt will be created on the desktop, which you need to open and carefully review. Its content will be similar to the image below.

Here we see that the Accessibility.dll library is damaged. It is this that you will need to find on the Internet or extract it yourself from the existing Windows 7 distribution to carry out the recovery.

Extracting OS components from the distribution

In addition to the installation disk, you will need a small free application 7-zip. With its help, we will work with the install.wim image located in the sources directory. The order is as follows:


All that remains is to copy them to the desired folder or to a flash drive. You can replace damaged data with them using installation/bootable media or LiveCD.

Replacing damaged files with new ones

To load the environment, we will use the same installation drive from which we took the data we needed:


These steps allow you to get into a fully functional explorer. Here you first need to specify that the program displays all file types. This is done below in the drop-down list. Next, all that remains is to transfer the copied files from the flash drive or from another folder to the place of the damaged ones and reboot. In this way, without reinstallation, you can fix problems caused by damaged system data.

recoverit.ru

How to restore windows 7 without reinstalling

To all owners desktop computers or laptops, sooner or later you have to reinstall the OS, be it Windows 7 or any other modification. There are many reasons for damage to the operating system (malware infection, incorrect installation of drivers, accidental deletion of system data, etc.). However, if in system partition The PC (for example, on the desktop) contains information that is important to you; after removing the operating system, it will also be deleted. To prevent this, instead of reinstalling, you can perform a Windows restore.

Ways to restore Windows 7 without reinstalling

The developers of this operating system took care of its reliability, equipping the product with many protective functions, among which the most useful is the recovery procedure. This software tool allows you to restore the functionality of the OS without completely reinstalling it.

There are several ways to initialize the Windows reanimation process:

  • using last known known configuration;
  • by using Chkdsk programs;
  • via a restore point;
  • via BISO.

To complete the task you do not have to look for any software or use additional devices.

The only thing you need to prepare is a DVD with Windows 7 OS of the exact build that was installed on your computer. The ideal option is to use the same disk.

Restoring the last good configuration

Every time you exit the system, all the important data necessary for the launch and operation of the operating system is entered into the registry. It is this information that the recovery procedure uses.

To activate it you need:

  1. Remove all additional storage devices from the computer (CDs, DVDs, flash drives, memory cards, floppy disks), and then restart it.
  2. While Windows is loading, hold down the F8 key. This will take you to the Additional Download Methods window.
  3. Select "Last good configuration».

If the system boots after completing the above steps, it is recommended that you important information, saved in the system partition (“My Documents”, drive C, desktop), copy it to another drive. After that, check your PC for malware and, if possible, perform full diagnostics systems.

Using this recovery procedure, you will not be able to recover lost personal data (music, videos, etc.), since it only works with system files. To restore such information, you need to use additional programs.

Restoring Windows using the Chkdsk application

Chkdsk (from the English “check disk”) is a program built into the operating system that searches for damaged system files on the hard drive and restores them.

One more useful property of this instrument is diagnostics of storage media on mechanical damage sectors and closing access to them, thereby speeding up the operation of the system.

There are two ways to initialize Chkdsk:

  • via graphical interface;
  • from the command line.

In the first case it is necessary:


To run Chkdsk from the command line:


After this, the Windows system will be restarted and diagnosed for damage.

Applying a restore point

A restore point is an OS element that stores a copy of system files, drivers and installed programs recorded in certain time. In windows, such points are created automatically via equal intervals time, as well as after installation and updating of programs.

To use a restore point, you need to:


Restoring a Windows system via BIOS

If it is impossible to start the OS, recovery using the methods described above won't do. In this case, you can use the BIOS to resuscitate Windows without reinstalling it.

The procedure will be as follows:


All available methods for restoring a Windows system do not provide a complete guarantee of a successful outcome. Therefore, if one method does not work, you need to use another.

recoverit.ru

Recovering deleted or corrupted Windows XP and Windows 7 system files

There are times when you need to restore damaged or deleted Windows XP system files. System files have every chance of being deleted, corrupted, or replaced with infected files as a result, for example, of viruses. There are often cases of defective system files when the computer is turned off incorrectly (as an option, when the lights are turned off) due to errors in file system.

Below you will get the answer to the question: How to restore damaged system files without reinstalling the Operating System.

The method is suitable for cases where it is known which system files will need to be returned.

If the PC stops booting after an incorrect shutdown (power outage, turning off with a button, unplugging the power cord from the outlet), you first need to check the hard drive for logical errors.

The recovery process consists of copying the required system files from the Windows XP installation disk. The windows distribution contains all the system files. They are located in the I386 folder. All the necessary files on the installation disk are written in compressed form and have an extension of the form .dl_ .ex_, etc.. I.e. the last character is replaced with an underscore.

We will need to unpack the files removed from the system from the windows installation disk into the folder where they should be present. If you do not have a windows distribution, you can download the archive with the I386 folder for the 32-bit version of Windows XP.

To return system files you need to boot from a bootable CD, for example ERD Commander. You can download the disk image here. You can burn a disc image using the free ISO Burner program (you can download it from this link)

Let's look at how to unpack system files from a Windows installation disk using the example of restoring the file C:\windows\System32\userinit.exe, which is often replaced with banners blocking Windows. The process of restoring damaged system files from the installation disk is not fundamentally different for other files. The main thing is to know in which folder this or that file is located.

Boot from the ERD Commander disk. Select download ERD Commander 5.0 for windows XP. In the window that appears at the end of the download, select the path to the installed Windows OS and click OK.

Open My Computer. Insert the windows installation CD. From the I386 folder, copy the required system files with the extension dl_ or ex_ to the folder where they should be present in the installed system. For us, this is the USERINIT.EX_ file. Copy USERINIT.EX_ from the I386 folder to the C:\windows\System32\ folder. To achieve the desired result, click right key in the USERINIT.EX_ file and select Copy to in the context menu.

In the window that appears, select the path C:\windows\System32 and click OK.

After the file is copied to the system folder, you will need to unpack it. Unpacking system files with the dl_ or ex_ extension from the windows installation disk is done using the expand command. The command syntax is: expand [source file] [target file] To execute the command, you will need to launch the Command Prompt. From the Start menu, select Run. In the window that appears, enter the cmd command and press Enter.

In the command line window, enter the command to unpack our file: expand c:\windows\system32\userinit.ex_ c:\windows\system32\userinit.exe and press Enter.

Unpacking will be completed, as indicated by the text: “c:\windows\system32\userinit.ex_: 11863 bytes expanded to 26624 bytes”. System file recovery was successful. Now you can restart your PC.

Any other windows system file can be restored in the same way.

How to restore corrupted Windows 7 system files without reinstalling the system.

Now let's look at how to restore system files in Windows 7.

We boot from the "ERD-Commander" disk (in the menu on the disk when loading, you need to select the version for Windows 7) Download the disk image here.

In the network settings window, select “Skip” and confirm the reassignment of disks. Next, select the path to the windows system folder.

Launch the MSDaRT recovery tools.

Select "System File Checker" from the menu

Select the item “Scan and request before fixing” - click “Next”

As a result, the process of searching for damaged or deleted Windows 7 system files will begin. It can last about 5 minutes. When the process is completed, a list of damaged or deleted windows files will appear. We tick the files that we want to restore and click “Next”.

The process of restoring Windows 7 system files will begin, after which the recovery results window will appear. Click "Next" and in the next window - "Done".

Keep in mind!

You need to be careful when selecting files to recover, especially when using pirated version, or windows builds.

Perhaps certain system files will be changed in it so that Windows does not ask for activation. The recovery tool may consider these files corrupted and replace them with the original ones, which is why Windows may display a message during its boot process about an unlicensed version of your Operating System. In case of restoring system files after removing the banner, select files to restore from the table below.

Windows system files and the folders in which they should be located:

Here are certain Windows system files, as well as the folders in which they should be located. By the way, if you found specific file, but in a different folder, most likely it’s a virus! (except for the c:\windows\system32\dllcache folder).

File Folder
explorer.exe c:\windows
iexplorer.exe c:\windows
regedit.exe c:\windows
notepad.exe c:\windows
userinit.exe c:\windows\system32
taskmgr.exe c:\windows\system32
taskman.exe c:\windows\system32
cmd.exe c:\windows\system32
logonui.exe c:\windows\system32
winlogon.exe c:\windows\system32

kampc-help.ru

How to restore Windows 7/8/8.1 system files

Hello, friends! Restoring system files in Windows 7 or Windows 8/8.1 is an interesting topic. Especially if the operating system starts to fail, but we don’t have a recovery image and we forgot to turn on system protection so that recovery points can be created. In this case, we will not be able to restore the system from the image, we will not be able to roll back windows to the created restore point, and we are also too lazy to reinstall the system, since this will take the whole day. And right here we have another chance to return Windows to normal - try to restore system files. In this article I will try to fully cover the topic so that we can revive our computer in any situation.

Recovering system files on a busy system

If our computer somehow turns on, then we do the following (if it doesn’t turn on, see section 2 of this article).

Open the Start menu. In the search field we write “Com”. On the “Command Prompt” element, right-click and select “Run as administrator”.

In the command line that opens, write:

We are waiting a little...

If your system is fine, you will see the following image.

If your windows was broken, you will see the following.

System files were successfully restored. We reboot and immediately turn on system protection to create restore points so that next time we can simply roll back the state of the computer to a couple of days ago and that’s it.

It happens that when scanning the system, the sfc.exe utility found damaged files, but could not fix them. In this case, I would restore system files in Safe Mode. If the same thing happens in safe mode, read the last paragraph 4 of this article.

If your computer does not boot at all, as discussed at the very beginning of the article, then read the next paragraph.

Recovering system files in the recovery environment

If our computer does not want to boot at all, then we use the recovery environment. You can load into it:

  1. Pressing F8 several times when turning on the computer
  2. Booting from a boot (installation) disk or flash drive

The first option will work if we have a boot partition that the system created when partitioning the disk when we installed the system. Boot partition size:

  • windows 7 - 100 MB.
  • windows 8 - 350 MB.

In any case, try pressing F8 several times during boot. A window should appear with additional download options. Select Troubleshoot computer problems.

In the next window, select the keyboard input method. Select the language in which you have set the administrator password (if there is no password, you can immediately click Next >).

Select a user with administrative rights and enter a password if you have one. If there is no password, just click OK.

Select the command line.

If you are unable to enter the recovery environment using the F8 key, you will need to boot from the installation (bootable) flash drive or disk. How to boot from a flash drive - here. You can boot from disk in the same way. Only in this case you need to put the DVD-RW (optical disc reader) first in the boot priority.

I like to boot from removable media using the boot menu. IN motherboards ASUS it is usually also called by the F8 key.

After booting from a flash drive or disk, I saw the following picture. I choose windows Setup - Installing windows.

Select System Restore.

We wait until all installed windows are found.

We choose the one that does not turn on for us. And here CAREFULLY! We remember the letter that the recovery environment assigned to your system (in the Folder column). I have this D.

Select Command Line.

Enter the command:

sfc /scannow /offbootdir=D:\ /offwindir=D:\windows

Instead of D, you substitute your letter. Press Enter and wait for the scan to complete

The virtual machine from which the screenshot above was taken had a blue screen, so I was not surprised that system files were found and restored.

How to find out the drive letter with windows installed

If you were able to use the F8 key to open the “Advanced boot options” window and select “Troubleshoot computer problems,” then we need to find out the drive letter where Windows is installed, which was assigned by the recovery environment. This can be done in two ways

1. Call the notepad with the command

In Notepad, open the File menu and select Open...

On the left, click Computer and in front of you will be disks with letters.

You can go to the disk and make sure what and where.

2. Use the DISKPART utility

On the command line enter:

diskpart - call the utility for working with disks.

list disk - view the list of disks.

select disk - select the hard drive I need.

detail disk - call up information about this disk.

For windows 8/8.1

If the sfc utility was unable to restore damaged system files, then you need to try to restore the storage of these system files. The place where copies of working system files should be located. As I understand it, it is located at C:\windows\WinSxS. That is, we must first fix the file storage, and then use the “SFC / Scannow” command to restore the windows system files.

Restoring storage using windows update

1. Launch windows PowerShell with administrator rights. To do this, open the Start menu or home screen and click on the “Search” icon. In the search box we write “PowerShell”. Right-click on “Windows PowerShell” and select “Run as administrator” or “Run as administrator”.

2. In the window that opens, write

Dism /Online /Cleanup-Image /RestoreHealth

and wait. If the storage is intact or it was restored using Windows Update, you will see the following picture.

If Image Health State: Healthy - everything is fine. Reboot the computer and try SFC /SCANNOW again.

Restoring storage using an image

If we have problems with Windows Update, then this method will do.

1. Download the original windows image 8/8.1 is the same bit size as your system. How to find out the bit depth installed system- here.

2. Connect or mount the downloaded image. Right-click on the image and select “Connect” or “Mount”.

3. In the command line with administrator rights, we look at what editions there are in the image with the command

Dism /Get-WimInfo /WimFile:F:\sources\install.wim

I have 2 editions in my image. It’s hard to understand which one I need based on these distinctive signs. Let's use the first one. If it doesn’t work, the second one.

4. Launch Windows PowerShell with administrator rights and set the command

Repair-windowsImage -Online -RestoreHealth -Source F:\sources\install.wim:1

where F is the drive letter to which we connected the image, 1 is the Windows edition number in the image.

Recovering system files manually

If using the sfc utility it was not possible to recover damaged files, you need to try to do it manually. In this case, you need to additionally run the command

findstr /c:"" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

Findstr/c: ""%Windir%\Logs\CBS\cbs.log>sfcdetails.txt

and carefully examine the sfcdetails.txt file on your desktop or in %windir%\Logs\CBS\.

It should be something similar to the picture below.

After the name of the damaged file is known (Accessibility.dll), we look for it on another computer with the same system as yours. If this is not an option, then I would download the original windows image and install it on the virtual machine. I found the file I needed and copied it to a bootable or installation flash drive. Then, with this installation flash drive booted into the recovery environment, launched the command line. From the command line I would open notepad. I opened the menu File > Open - and now I have an almost full-fledged explorer. We copy and replace the working file from the flash drive, reboot and everything should work.

If the option of installing a virtual machine does not suit you, then you can include the install.wim file in the folder. Then go to this folder and copy the necessary files.

1. Create a folder. For example, “Win8.1Pro” in the root of drive D.

2. Copy the install.wim file to the root of drive D.

3. Mount the install.wim file into the created folder.

Dism /Mount-Wim /Index:1 /WimFile:D:\install.wim /MountDir:D:\Win8.1Pro

Go to the created folder and copy the necessary files.

Disable the image

Dism /Unmount-Wim /MountDir:D:\Win8.1Pro /Discard

Conclusion

This is how I will try to restore system files in Windows 7/8/8.1. Write questions and suggestions in the comments. Thank you for sharing the article on social networks. All the best!

Best regards, Anton Dyachenko

YouPK.ru

How to restore system files in Windows 7

What to do when for some reason system files have sunk into oblivion and the computer cannot work normally? There is no need to worry, as the situation can be corrected.

Reasons for disappearing system files

It often happens that Windows system files disappear. Their absence hinders normal operation system or even worse - it does not allow Windows to start. The reasons for this may be different:

  • the system file was deleted by a virus or blocked by an antivirus;
  • accidentally, due to the fault of the computer user himself;
  • due to Windows updates (if updates occur constantly over a long time, they begin to block each other).

Of course, you can go to extreme measures and reinstall the system. But this is not an option if on the desktop or folders system disk working documents have been saved that cannot be lost, because after reinstallation they will definitely disappear. Before doing this, you should still try to restore system files for Windows 7.

How viruses work

It often happens that a virus got on the computer, after which the system file became damaged and was deleted. In this case, you need to look at the antivirus logs. It will indicate how the file was deleted, when and what virus it was infected with.

Sometimes it happens that the antivirus itself blocks important data after updating the OS. In this case, you need to go to the "Quarantine" section of the antivirus and find the missing files, then restore them and add them to White list or change your antivirus program.

Recuva

On Windows 7, system file recovery can be performed third party program, for example, Recuva. It is completely free and easy to use even for those who will be doing it for the first time. Download it and install it. Having launched it, the first thing you need to do is go to advanced mode (the button on the top right), and then select the directory to scan ( windows folder) and start scanning.

After the system file check is completed, files with multi-colored circles next to them will appear (green - excellent condition, yellow - damaged, red - cannot be recovered). If the check shows that desired object in excellent condition, it can easily be restored by selecting the checkbox and clicking on “Restore”.

Let's rollback

A rollback restores the operating system using a checkpoint that was created before the error occurred. The operating algorithm is as follows: Start / All Programs / Accessories / System Tools / System Restore. Select an OS restore point that was created before the loss of important data. We launch a rollback, after which the Windows system files and folders will be restored. However installed programs will be deleted afterwards. You can view the estimated losses by clicking on the “Search for affected programs” button.

Troubleshooting

If on Windows 7 restoring system files using third party program is impossible and a rollback cannot be done, you need to scan your computer for damaged and missing data. The command line will help in this matter.

Open it as an administrator. You can do this in several ways:

  1. Start/All Programs/Accessories, right button mouse on cmd (command line) - "Run as administrator".
  2. Go to the system drive, windows folder, System32, right mouse button on cmd - “Run as administrator”.
  3. In the Start search, enter cmd and press Shift+Ctrl+Enter.

In the window that appears, write sfc /scannow, after which the Windows 7 system files will be checked for integrity and restored if some of them malfunction.

After recovery, you need to make a point to restore the OS so that next time you can rollback it, rather than restore individual data. The algorithm is as follows: open the "Properties" section in "My Computer", with right side Select the “System Protection” section. In the “Protection Settings” section on the system drive, protection must be enabled. If it’s not there, select it, click “Configure” and put a dot next to “Restore system parameters and previous versions files". Choosing a place for disk space(1.5-2 GB is enough). Click OK. Next, click “Create” and give it a name.

Now you can restore system files on Windows 7.

Windows 7 won't boot, system file recovery

While loading the OS, you need to constantly press F8 until the list and the words “Last Known Good Configuration” appear. Click on it, after which the system should start from the moment when Windows successfully booted up the last time. If that doesn’t work, select “Troubleshoot computer problems.” In the list, click on “Startup Repair”. Windows 7 system files will begin checking for errors and faulty data, after which we restore them by clicking “Fix and restart”.

Also, if a restore point was previously created, you can return the OS to its previous state using a rollback.

Boot disk

If the operating system does not boot due to data loss, you can return it to normal using a boot disk or flash drive. We insert the disk or flash drive into the computer and reboot it. Next, the bootable media needs to be set to first place as a priority. You can do it like this:

  1. IN BIOS settings. Go to the BIOS (F2, F11 or del key) and look for Boot Manager. There we set the flash drive or disk drive to first place as a priority. If the flash drive is not displayed, you need to activate it in the settings USB support. For each BIOS version these settings look different.
  2. Before starting the OS, press the boot menu key (F8, F11 or F12), after which Boot Manager will appear with a list of drives, from which we select the one we need. If bootable Windows is on a flash drive and it is not displayed, you need to activate USB support in the BIOS settings.

If the desired drive is selected, the installation of Windows 7 will start. After selecting the language, click “Next”, and then select “System Restore” at the bottom left side. In the window that appears, select “Startup Repair” or “System Restore”. Next steps already know each other.

Mar 9 2011

A few words about restoring damaged system files in Windows 7

Continuing the theme of utility sfc.exe(which, by the way, was the subject of the earliest post on my blog and, in principle, was started from the wrong end :)) I, as promised, in this short article I want to talk about the aspects of using this tool in more detail. You often install/remove programs, use various “tweakers”, “optimizers”, system “cleaners” and other certainly “extremely useful” programs this kind of? Then it is quite natural that after some time Windows will begin to work incorrectly, and may even refuse to do so. Operational problems may be accompanied by error messages, damaged system files, or their absence altogether. In such cases, I consider it advisable to begin efforts to revive the operating system by checking it for the presence of damaged system files and if any are found (and it is quite possible that they are completely absent), Windows will try to restore them automatically. If it doesn’t work automatically, then we’ll try to do it ourselves, manually (if the damaged/missing system file is known). So, method 1, automatically.

Method 1. System File Integrity Checker (sfc. exe).

This tool is widely known, so I see no point in describing it in detail; information is quite easy to find on the Internet. If you wish, you can read about this in more detail at least. I’ll just describe the algorithm of actions:

In the command line as an administrator, enter the command:

sfc/ scannow

Utility sfc. exe will start up and begin its work.

At the end of the check, there will be 3 options: either the utility will display a message that no errors were found (then you should look for the source of the problem in a different direction), or it will report that it has successfully restored damaged files (congratulations, see Figure 2),

or finally, it will indicate that the scan tool was able to detect damaged system files, but was unable to repair them. In both the first and third cases, the result is not the most expected, But. In the latter case, it makes sense to resort to another command using the tool sfc. exe, but before starting the re-check, you will need to additionally insert an installation disk into the drive with an instance of Windows similar installed version systems (bit capacity, release). Although not necessarily, I think.

However, I got ahead of myself.

If sfc. exe will detect damaged system files, but will not restore them, you can be curious and ask what files could have been damaged?

Program sfc.exe writes information about each check operation and each repair operation to a file CBS.log. File CBS.log is in the folder %windir%LogsCBS. However, if you try to examine its contents in the usual way (open the file), you will find the following error:

Don't be surprised. For these cases, Windows provides the command:

%windir%logscbscbs.log/c: "" findstr > sfcdetails.txt

which is also executed on the command line with administrator rights. By running this command, you will save a log file with the extension * txt on your Desktop and you can read it like a regular text document. What will it give? You will find out which system files the utility sfc. exe considered damaged, but could not fix them. Read the article for more details about this: "Analysis of a Log File Entry by the Microsoft Windows Resource Checker (SFC.exe) in Windows Vista"(applies to Windows 7 as well).

However, let's return to the second stage, which is also performed in cmd with administrator rights to resuscitate files that previously could not be recovered during the first attempt.

Example commands:

Enter the first command

takeown /f E:windowssystem32jscript.dll

Enter the second command to grant administrative access to the file

icacls E:windowssystem32jscript.dll /grant administrators:F

Enter the last command to replace the corrupted file with a working copy of it

copy E:tempjscript.dll E:windowssystem32jscript.dll

Where E– the letter of your Windows drive.

This information (I mean examples of commands) is presented by me in theoretical terms (which I usually don’t do here), since I personally have not yet had any reason to check it in practice. Check it out yourself, and if it’s not difficult, report the results.

Method 2. Extraction Windows files 7 of installation DVD and replacing damaged system files with them.

Well, the most basic thing is to copy from the installation disk required file, and replace the damaged one with it. Next, restart your computer.

However, there is also alternative way(for advanced) - extract files from a Windows 7 disk using a mounted image Windows distribution (Image) V DISM(a command line utility built into Windows 7 that allows you to mount and manage WIM images).

1) Insert the Windows 7 installation disc into the drive.

2) Open the folder sources and copy the file from it install.wim to any non-system disk or disk partition - let's call it E.

Important: as a folder for mounting the image install.wim you cannot use the root of the system disk (with Windows), since install.wim contains system folders, such as Windows, Program Files, Program Data etc.

3) On disk E create a folder named Image. The image will be attached to this folder install.wim.

4) Click Win+ R and run the command:

dism /Mount-Wim /WimFile:E:install.wim /name:”Windows 7 Ultimate” /MountDir:E:Image

dism– command line utility.

Parameter /Mount-Wim responsible for including the file Wim.

Parameter /WimFile specifies the location and name of the file Wim, which needs to be connected.

Parameter /name indicates the name Windows release 7, for mounting into an image.

Parameter /MountDir specifies the folder where the image will be mounted Wim.

5) The process of connecting the image will start.

6) Open the folder E:Image, find the required system file in it and copy it to any location on your hard drive.

After copying the necessary files, the image can be disabled.

To disable the image in DISM run the command

dism /Unmount-Wim /MountDir:E:Image /discard

Parameter /Unmount-Wim disables the image.

Parameter /MountDir: Specifies the folder where the image you want to unmount is mounted.

Parameter /discard undoes all changes made to the image.

If complications arise with this matter (deleting with the Del key will be impossible), boot into, for example, ERD Commander, and selecting the drive letter of your operating system, click Yes(Yes). Next, in the selection window, without marking any system, click Further(Next) and then log in MDART(Microsoft Diagnostics and Recovery Toolset) and find the folder image, which needs to be deleted.

Sources used: Microsoft and open spaces WWW :)

When you delete a file in Windows 7, it does not disappear from hard drive– it can be restored from the Recycle Bin. But even if he permanent deletion from the Recycle Bin, it is still possible to restore it. In Windows, files never disappear without a trace; the space they occupy on the hard drive (or other storage medium) is simply marked as one on which new information can be written.

What should I do to recover Windows 7 files?

Step 1: Recover files from the Windows 7 Recycle Bin

Looking for how to restore deleted files from the Trash? Do the following:

Step 2: Use a program to recover deleted files

Are you looking for how to recover deleted files without using the Recycle Bin? In cases where files are deleted from Shift+Delete and it is no longer possible to return them using standard operating system tools, most in an effective way will use the program Hetman Partition Recovery.

For this:

  • Download the program, install and run it. Check out the program's capabilities and step-by-step instructions.
  • By default, the user will be prompted to use File Recovery Wizard. By pressing the button "Further", the program will prompt you to select the drive from which you want to recover files.
  • Double click on the disk and select the analysis type. Specify "Full Analysis" and wait for the disk scanning process to complete.
  • After the scanning process is completed, you will be provided with the found files. Select the ones you need and click the button "Restore".
  • Select one of the suggested ways to save files. Do not save files to a disk from which they were deleted - they can be overwritten.


Step 3: Restore Windows 7 system files

The need to restore Windows 7 system files may arise as a result of their damage or deletion. This can happen due to incorrect use of the operating system, as a result of system or hardware failures, or exposure to malicious software.

Run System File Checker sfc /scannow

Using this command, you can restore system files if Windows is operational and starts.

For this:


How to restore Windows 10 system files

Launch the Recovery Environment

If, as a result of damage to system files, the operating system becomes inoperable and does not boot, you can restore them using the recovery environment.

You can launch it:

  • By pressing the key while starting the computer F8.
  • Using a boot disk (or flash drive).

Note. The first option is only possible if a boot partition was created during installation of the operating system. This section is created by the system for its recovery and, depending on the system, can have a size of 100 MB, 350 MB or 450 MB.


Launching Recovery environment, select item System Restore or Troubleshooting your computer. The names of menu items may vary depending on the version of the operating system and the launch method Recovery environments.

Step 4: Recover damaged files

The integrity of Windows 7 files may be compromised as a result of improper handling of them, frequent reinstallation programs or overwriting information.

Other factors that can lead to file corruption may include operational failures hardware(for example, availability bad sectors on the disk), program failure or viruses.

You can restore damaged files:

Step 5: Restore file associations

File associations are the association of a file type with the program with which it will be executed. Due to Windows failures or errors, such associations may be broken.

To restore file associations:

The methods described above are applicable for regular file(image, document, video, etc.). If there is a violation of the association of folders, shortcuts or exe files, then do the following:


How to Boot Windows in Safe Mode

Step 6: Repair DLL files Windows 7

On our own DLL files are not executable files, but they are used by other programs.

Possible causes of damaged, deleted or DLL file errors:

  1. Unintentional DLL removal files.
  2. Rewriting DLL files.
  3. Exposure to viruses or malware.
  4. Hard drive damage.
  5. Missing or damaged hardware drivers.
  6. Windows contains incompatible versions of files that belong to different applications.

To repair a DLL file:


Step 7: Reinstall the Windows operating system

In case none of the above methods did not lead to required result, in this case full recovery system operability can be achieved using redirection Windows installations.

In order to perform a clean installation of Windows, you need to create an installation disk or other media from which you plan to install the operating system.

Boot your computer from the installation disc. This may require changing the boot device in the BIOS or UEFI for more modern computers.

Following the installer menu items, specify the drive on which you want to install Windows. To do this you will need to format it. If you are not satisfied with the quantity or size local disks, they can be completely deleted and redistributed.

Remember that formatting, deleting or reallocating drives will delete all files from your hard drive.

After specifying the disk for installing Windows, the process of copying system files and installing the operating system will begin. You will not be required during installation additional actions. During the installation, the computer screen will go dark several times for short periods of time, and the computer will restart itself to complete some stages of the installation.

Depending on the Windows versions at one stage you may be required to select or enter basic parameters personalization, computer operating mode on the network, as well as parameters account or create a new one.

Once the desktop boots, the clean installation of Windows is complete.

Note. Before you begin a clean installation of Windows, make sure you have drivers for all installed devices and the safety of your files. Download and save the drivers to a separate storage medium, and create a backup copy for important data.

How to reset Windows 10 to its original state

How to reset Windows 10, 8, 7 if the computer does not boot

Hello readers of the blog of the ComService company (Naberezhnye Chelny)!

Restoring system files in Windows 7 or Windows 8/8.1 is an interesting topic. Especially if the operating system starts to fail, but we don’t have a recovery image and we forgot to turn on system protection so that . In this case, we won’t be able to, we won’t be able to roll back Windows to the created restore point, and we’re also lazy, since it will take the whole day. And right here we have another chance to return Windows to normal - try. In this article I will try to fully cover the topic so that we can revive our .

Article structure

1. Recovering system files on a busy system

press Enter and wait for the scan to complete

The virtual machine from which the above was taken was installed, so I was not surprised that system files were found and restored.

3. How to find out the drive letter with Windows installed

If you succeed using the key F8 call up the “Advanced boot options” window and select “Troubleshoot computer problems”, then we need to find out the drive letter where Windows is installed that was assigned by the recovery environment. This can be done in two ways

1. Call the notepad with the command

Open menu in notepad File and choose Open…

Left click Computer and in front of you there will be disks with letters

You can go to the disk and make sure what and where.

2. Use the utility DISKPART

On the command line enter

diskpart- call the utility for working with disks

list disk- look through the list of disks

select disk- I choose the one I need

detail disk- call up information about this disk

4. Recovering system files manually

If using the sfc utility it was not possible to recover damaged files, you need to try to do it manually. In this case, you need to additionally run the command

findstr /c:"" %windir%\Logs\CBS\CBS.log >"%userprofile%\Desktop\sfcdetails.txt"

and carefully study the file sfcdetails.txt on the desktop.

It should be something similar to the picture below

Once the name of the damaged file is known (Accessibility.dll), I would look for the same one in the distribution and replace it. In this case, naturally you will need to get . And before you boot into Windows and obtain rights to the files, you can try to copy the necessary files using Notepad launched from the recovery environment (how to do this was described above).

Conclusion

Friends! Everything written above about restoring system files in Windows 7 is also true for. And, I would also apply this command to Windows 8

I haven’t tried this command myself, but if the system doesn’t boot, it certainly won’t get any worse.