1. In Windows
If your computer can still enter the Windows environment, congratulations. In this case, even if the system has a problem, it will not be a big problem. In this case, the following methods are usually used:
1. Extract the missing important files from the installation disc
If Windows XP has been accessed, but the hacker finds that some files are missing, rundll32.exe is missing. The following describes how to restore the file: Click Start/run, and enter expand X: i386rundll32 in this window .. ex _ c: windowssystem32rundll32.exe (X indicates the drive letter, rundll. ex _ indicates the file to be decompressed. C: windowssystem32 indicates the target folder, which must be determined based on the actual situation) to restore the lost file to the system. Of course, you can also copy the file directly from other normal machines to the corresponding directory of the local machine.
In addition, you can use the regsvr32 program file to restore the lost DLL link file. During restoration, you must enter regsvr32 A in the running window. DLL (. DLL indicates the lost link file). After you press enter, the file will be registered in the Registry, and then click "OK" in the pop-up dialog box.
2. dll file recovery
The DLL file name is a dynamic link library file, which is usually stored in the windowssystem32 folder. The file is lost or replaced, and can also be accessed to Windows, however, system errors often occur during application execution. This error can usually be caused by SFC (System File Checker ). SFC is a command line program that can run only in the "command prompt" Window of WindowsXP. To implement multiple functions, SFC provides multiple parameters in the following format: SFC/parameter 1/parameter 2 ......, Each parameter must be separated by a space. The following describes several main parameters for your convenience:
/Scannow: used to scan all protected system files. It is also a widely used parameter. It mainly replaces wrong system files with correct system files. This parameter can also be used to add the latest version of the protected system file to the dllcache folder. During the operation, you may need the Windows XP installation disc and its patch file. If you do not have this disc, instead, the installation file is backed up on the hard disk. You can modify the Registry to complete this function. In the run window, enter the Regedit command to enter the registry editor window, find the hosts item, and modify installation sources, servicepacksourcepath, and soutcepath in the right window as the system installer path on the hard disk, in this way, you do not need to insert a Windows XP installation CD during the restoration process.
/Scanonce: scan the protected system files at the next startup. You also need to read the installation CD and patch files. This command is often used only when an error message is prompted when the/scannow command is executed.
/Scanboot: scans the protected system files every time the system is started. This may greatly reduce the startup speed. Generally, it is not used. The usage is the same as that of the/scanonce parameter.
/Purgecache: used to clear the File Cache (this file is under % SystemRoot % system32dllcache by default) and scan all protected system files immediately, the "/cachesize = x" parameter must be added later. This parameter is used to set the File Cache size, in MB. If this parameter is set to a small value, hard disk space can be saved, if you set a larger value to protect system files, more system files may be recovered as much as possible.
Generally, you can restore the system file by executing SFC/scannow. The time is generally about 10 minutes.
3. System Restoration
If SFC/scannow still fails, you may want to use the system restoration function to restore the system. This method is especially convenient when system faults occur after some software is added or deleted.
Choose Start> All Programs> accessories> System Tools> system recovery. Run the system recovery command to open the system recovery wizard ", select "Restore my computer to an earlier time", click "Next", select a date, and then follow the Wizard to restore it.
The System Restoration function mentioned above is operated in Windows XP. If you cannot access Windows XP, you can solve the problem as follows:
(1) restore the operating system in Safe Mode
If Windows XP can enter safe mode, the system can be restored in safe mode, in the same steps as "Restore origin ".
(2) restore the system in DOS mode
If the system cannot enter safe mode, press F8 at startup, select "safe mode with command prompt", log on as an administrator, go to the % SystemRoot % windowssystem32restore directory, and find the rstrui file, run the rstrui file directly and follow the prompts.
(3) restore the system when the Restore point is lost.
In Windows XP, the system volume information folder is preset, which is usually hidden and stores the backup information restored by the system. Open the "show all files and folders" attribute and deselect "Hide protected system files". The "system volume information" folder is displayed on each disk. You can use this folder to recover data. Right-click my computer, select "properties"/"System Restore", cancel the "Disable System Restore on All Drives" check box, and click "Apply. This is done to recreate a Restore Point. Open the "System Restore" command to find the loss recovery point.
The preceding description is for FAT32 partitions. If the system partition is NTFS, you may encounter some trouble when starting the system volume information folder. Because you may not be added to the system volume Information Security Attribute and cannot access the file. Right-click the folder and select "properties" from the shortcut menu. The system volume information Properties dialog box is displayed. Select the "Security" tab and click "add, open the "select user or group" window, click the "advanced" button in the lower-right corner of the window, and then click "Search now". All users and groups on the computer are listed, select the name of your current account or account group and click "OK ". In this way, the selected account is added to the system volume information security attribute to access the folder.
2. In a DOS environment
If the computer cannot enter Windows XP, you don't have to worry too much about reinstalling the system, because there are still some methods.
1. Security Mode
Press F8 when Windows XP is started and select "safe mode". If it can be started successfully, it will be restarted after exiting.
2. The last correct configuration
The basic operation is the same as the security mode, but it must be noted that the numlock indicator on the keyboard should be disabled before you press Enter.
3. fault recovery platform
(1) console Installation
① Console hard disk installation
Insert the Windows XP installation disc, click "start"/"run", enter the i386winnt32.exe/cmdcons command, and press Enter. The "fault recovery console" Installation option is displayed in the displayed dialog box, and click "yes, after the computer is restarted, the "Microsoft Windows Recovery Console" menu is displayed in the "Start" menu. After selecting the menu, you can go to the "fault recovery console ".
② Console CD installation
First set the boot sequence to CD-ROM In the bios, then insert the WindowsXP installation disc boot system in the optical drive, when the screen shows "welcome to the installer", start the fault recovery console by R. Then the system will ask you to enter the administrator password, and then enter the fault recovery station. If multiple systems are installed, you need to use the optical tag key to select the recovery item. For a hard disk that uses SCSI or raid, press the F6 key when it is started. To forget the administrator password, run gpedit when Windows XP is started normally. choose "Local Computer Policy", "Computer Configuration", "Windows Settings", "Security Settings", "Local Policy", and "Security Options" in the Policy Editor ", in the window on the right, double-click "fault recovery console: Allow automatic system management-level Logon", right-click, select "start", and click "OK" to save the settings, you do not need to enter the password when entering the Recovery Console.
(2) "fault recovery console" Application
① Repair the damaged multi-Start Menu
If multiple operating system menus are lost for some reason, you can go to the fault recovery console and enter the bootcfg/scan command to automatically scan and display the installed operating system, enter the bootcfg/rebuild command, Press Y after the prompt appears, and enter the missing Start Menu item after the prompt "Enter the load identifier, after "Enter OS loading options", enter fastdetect and press enter to find the multi-system menu. In addition, you can enter the bootcfg/Add command to add menu items to the Startup menu.
② Repair System Boot Zone
If the boot fails due to some damage to the system boot area, you can go to the fault recovery console and enter fixboot in the command line to repair the boot area.
③ Recover important system files
Some important files in the system are directly related to whether the startup is successful. For example, if the ntldr file is lost, the system cannot be started. You can enter the console and enter the command line copy X: iw.ntldr *. * c: Press enter to restart Windows XP. If some compressed files are lost, enter expand X: iplusa. ex _ c: Windows (X indicates the drive letter,. ex _ indicates the file to be decompressed. C: Windows refers to the target folder, which must be determined based on the actual situation) to restore the lost file to the system.
④ Enable or disable certain services or drivers
This function is mainly used when the system cannot be started due to the installation of some new programs. We may remove this service or program from the fault recovery console to bring the system back to life. The procedure is as follows:
Log on to the console, enter the listsvc command, and press Enter. On the screen, all existing services and drivers in the current system and their status are displayed. Find the suspicious service or driver to be disabled, enter the program or service to be disabled by the command disable, and press enter to display the previous and completed status of the service on the screen; if you want to hire a program or service, you need to type the program or service to be disabled by enable, and press Enter.