SoFunction
Updated on 2025-04-13

xp and 2000, 2003 system optimization and setup tutorial page 4/5


4. Special Topic

 

A. ★Use of “2000/XP Repair Console”:

This topic is found in many people and many articles, but the content is very complicated and messy. Many friends still don’t know how to use it after reading it. I re-select the most commonly used commands and reorganize them with your own experience of using them, so as to ensure that everyone can use this good thing. (The startup effect of her repair system is the best)

There are two ways to use the recovery console. One is to boot with the 2000/XP boot disk, and after entering the installation interface, select the recovery console to repair it with the command; the other is to install it when XP is running. Specific method: First insert the XP installation boot disk into the optical drive, open the run dialog box, enter the command X:\i386\winnt32/cmdcons (where X is the optical drive letter that loads XP). When the system asks you whether to install the command recovery console, select Yes, the installation wizard appears, and then choose to skip network updates, and wait until the file is copied and the installation is successful. After restarting, you can see the Microsoft Windows XP Recovery Console option in the startup list.

The most commonly used commands are as follows:

Help  XX: Displays a help list for command usage in the recovery console.

bootcfg  ——> This command is unique to Windows XP, and it can fix the boot menu.

/scan —>Automatically scan the hard disk and automatically add the system startup menu   (It is very effective for boot failures caused by multiple systems)

Chkdsk /r ——> Find incorrect sectors and restore readable information (it will take a long time, depending on the partition size)

/p—>Default check parameters

diskpart /delete X——> Use this command to delete partitions (X is a drive letter)

diskpart /add  XX —>Use this command to add a partition to the hard disk (XX is the new partition size, unit is M)

fixboot c: ——> Many times the partition boot sector is easily damaged and causes startup failure. Use this command to write a new system partition to the user logged in.

fixmbr —> If the main boot record is corrupted, use this command to write a new one and try to fix it.

Exit —> Close the recovery console and restart the computer.

 

B. Solutions to system shutdown failure:

1. Turn on "Advanced Power Management"

If there is no "advanced power management", there are two reasons: 1. The motherboard does not support ACPI. Before installing the system, this function is turned on (BIOS/Power Management Setup/ACPI Function is set to Enabled). XP arranges advanced power management based on BIOS information, so there is no "enable advanced power management support". Although you corrected it in the BIOS after installation, XP did not update this, so "enable advanced power management support" still does not appear. The solution is to reinstall the system while ensuring that the motherboard opens ACPI.

2. Turn off the program before shutting down

Many people have a bad habit. The program is shut down before it is closed. This is the easiest way to crash when shutting down, so please close all programs before shutting down. (Especially some background programs, such as firewalls)

3. Reasons for Office XP

Office XP has always been a controversial issue. It is a text service file of Microsoft. As long as the user installs Office XP and installs the "optional user input method component, this file will automatically call it to provide text input support for voice recognition, handwriting recognition, keyboard and other user input technologies. Even if we do not start Office XP, it will still run in the background. It often causes shutdown failures, so you might as well uninstall it and try it.

Open "Add/Remove Programs", select "Microsoft Office XP Professionain WithFrontPage", click the "Change" button, select the "Add or Remove Function" option in the "Maintenance Mode Options" dialog box, click Next, the "Select Installation Options for All Office Applications and Tools" dialog box pops up, expand the "Office Sharing Function" option, select the "Chinese Selectable User Input Method" option, and select "Don't Install" in the pop-up menu, as shown in Figure 2, click the "Update" button.

4. APM/NT Legacy Node is not enabled

Generally speaking, if APM/NT Legacy Node is not turned on, it may cause the power to shut down but cannot automatically shut down. Enter the Device Manager and click "View → Show Hidden Devices" in the menu bar to display all hidden devices in the system. Check whether there are APM/NT Legacy Node options in the device list box. If your computer supports this function, you will have this option. Double-click and click the "Enable Device" button in the pop-up properties dialog box.

5. Shutdown failure caused by software failure (given two examples)

a. When shutting down, the system will automatically pop up a window, prompting "DLL initialization failed". It is the execution program of the system's own detection program (Dr. Watson) and deactivate it: click "Start → Run" and enter "regedit" in the open window, then expand the following branch in the registry editor: [HKEY_LOCAL_MACHINESOFTWARE/Microsoft/Windows NT/CurrentVersion/AeDebug], and then change the value of "auto" to 0 in the right window.

b. When you turn off the computer, a prompt window will always pop up with the content: "Not if cation and for admin, This program is not...", and then you have to wait for a while before the computer can be turned off. This is because "RealOne Player" is installed, and its background automatic service program is running in the lower right corner of the taskbar. Open RealOne Player, select "Tool→Preferences→Automatic Services", and remove "Prohibit background service programs from existence" in the options.

6. Use group strategy to solve (2 cases)

(1) Solve the problem of "shut down reason":

2000 upgrades to 2003. A window will pop up every time you shut down. Select one. If you don’t select it, the “OK” button below is gray and you cannot enter the shutdown interface. You can solve it like this: Run “”, open the Group Policy window, select “Computer Configuration → Administrative Templates → System”, double-click “Show Shutdown Event Tracking”, select “Disabled” in the pop-up window, and finally click the “Apply → OK” button.

(2) Solution to the "Shutdown" button being disabled

2000 Group Policy can disable shutdown items. Run "" to open Group Policy, open "Administrative Templates" - "Taskbar and Start Menu" on the left, select "Disable and Delete 'Shutdown' Commands" on the right, select "Enable" in the pop-up dialog box, and after confirmation, there is no "Shutdown" item in the Start Menu. Moreover, it is impossible to shut down using other methods. For example, press the key combination "Ctrl+Alt+Del", and you can see that the "Shutdown" button in the dialog box has turned gray; press "Alt+F4", and a warning will appear: "This operation has been cancelled due to the limitations of this computer. Please contact your system administrator." If you encounter this situation, you can solve it in the reverse direction.

Another trick to speed up shutdown: because the user's personal settings will be saved first when shutting down/rebooting the Windows system, so the time is long. If the normal shutdown/reboot without system modification and filming is not carried out, it can be done through the "Task Manager". The Ctrl+Alt+Del" key combination calls out the "Windows Task Manager", click the "Shutdown" menu on the menu bar, then press the Ctrl key on the main keyboard, and then click "Close/Restart", so that the instant shutdown or restart can be achieved.

 

C. Do you really know how to use it? ——Detailed introduction to Regsvr32 and Rundll32

Regsvr32 and Rundll32 are often encountered, but few friends can really use them, and many friends will confuse them. I have compiled their most commonly used functions and recommended them to everyone.

 

Regsvr32 topic

The Regsvr32 command is a practical tool provided by the Windows system. It is used to register or uninstall controls with the system. Using this command, you can retrieve lost functions of the system.

1. Fix IE that cannot be opened in a new window:

"Regsvr32", "Regsvr32", "Regsvr32". After the three controls are successfully registered, restart the computer and IE will return to normal

2. Uninstall the ZIP function that comes with winXP:

Enter Regsvr32/u  to uninstall the ZIP function that comes with winXP. If Regsvr32 is entered, the ZIP function will be restored.

3. Prevent script viruses

The copying and spread of many script viruses cannot be separated from "FSO objects (FileSystemObject). Many people use their computers to build forums, websites, forums or dynamic website programs to perform online file management. In this way, many people add malicious content to their web page codes). Therefore, disabling "FileSystemObject" can effectively control the spread of script viruses. Enter "Regsvr32/u " to disable the FSO object.

4. Restore/disable the "preview function"

When opening a folder containing video files/pictures, the opening speed is very slow because the system uses the media preview function. Start - run. Enter the command "regsvr32/u " to turn off the "Video Preview" function. In addition, "Regsvr32/u " prohibits the "Image Preview" function. If you want to restore, just delete the "/u" in the command.

In addition: If it is prohibited in 2000, open the folder you want to prohibit preview, right-click the blank space, select "Custom Folder", and the Custom Folder Wizard will appear, which has a "Please Select Template" item. Select "Easy" in it to prohibit preview.

5. Restore online upgrade function

At the top of the Windows Start menu, there is a "Windows Update" item that can quickly upgrade and supplement the system online. But sometimes you will find that online upgrades cannot be performed. To solve this problem, just execute "Regsvr32" in the run box and restart the computer to solve it. (Of course, first of all, make sure to turn on the "AutoUpdate" service.)

6. Restore "Add/Remove Programs"

Sometimes, the "Add and Delete Program" of the control panel is damaged due to do not delete or other reasons and cannot be used. You can try this method. First run "regsvr32" and press Enter, then "regsvr32  -i", press Enter, and finally "regsvr32  -i", press Enter, so that the "Add/Remove Program" component can be reused.

 

Rundll32 topic

1. Use the Rundll32 command to install and uninstall Windows programs

Tip: Rundll32. exe is a command provided by the Windows system. It is used to call 32-bit DLL functions (16-bit DLL files are called with Rundll.exe. DLL files are the basis of Windows. All API functions are implemented in DLLs. They cannot be run independently. They are generally loaded and called by processes. The easiest way to run DLL files is to use it. Its command format is "Dynamic link library name, function name, parameter name".

1. Uninstall Microsoft Java Virtual Machine

In Windows systems, if IE browser wants to execute web pages containing Java applets, I must install Microsoft Java Virtual Machine (MSJVM). Windows 98/2000 has bundled MSJVM. Although Microsoft Java Virtual Machine has been stripped of Windows XP/2003, it can still be installed manually. However, there is a reality that we have to face: due to the open and secret battle between Microsoft and SUN, Microsoft has stopped developing MSJVM, so many users switch to Java virtual machines provided by SUN. However, Microsoft does not provide an uninstall tool for MSJVM. Using the Rundll32 command, we can easily uninstall MSJVM.

Click the "Start → Run" command, enter "RunDll32 , LaunchINFSection , UnInstall" in the "RunDll32 , LaunchINFSection , UnInstall" in the "Run" dialog box. After pressing the "Yes (Y)" button, the system will start uninstalling the Microsoft Java virtual machine. After the uninstallation is completed, the system needs to restart.

Next, delete the files under \inf in the system directory, as well as the files and files under \system32. Finally, open the Registry Editor, expand the [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\JavaVM] branches and the [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InternetExplorer\AdvancedOptions\JAVA_VM] branches in turn, and delete all subkeys under these two branches.

Tip: The above method does not apply to Windows 98 system.

2. Reinstall IE6.0, which comes with Windows XP

The IE browser on Windows system has many vulnerabilities and is most likely to have problems. Sometimes it cannot be solved, so I can only reinstall it. Reinstallation is easy to complete with the Rundll32 command. Let's take reinstalling IE6.0 in Windows XP as an example:

First, insert the Windows XP CD into the optical drive, then click the "Start → Run" command, enter the "Rundll32 setupapi, InstallHinfSection, DefaultInstall 132 C:\windows\inf\" command in the "Rundll32 setupapi, InstallHinfSection DefaultInstall 132 C:\windows\inf\" command. After pressing, the system will open the installation process dialog box and start reinstalling IE6.0.

Tip: If your Windows XP system is not installed on C drive, please change "C\Windows\Inf\" to "%systemroot%\\”.

3. Uninstall Windows Messenger

There are many ways to uninstall Windows Messenger. The most common method is to modify the "" file, but this method is relatively complicated. Uninstalling can be easily completed using the Rundll32 command:

First, make sure that the components that come with Windows such as Outlook and IE have been closed, and then click "Start → Run", enter the "RunDll32, LaunchINFSection %windir%\inf\," command in the "RunDll32" dialog box. After entering, the system will open an uninstall dialog box. After clicking the "Yes (Y)" button, the system will start uninstalling the Windows Messenger program.

 

2. Restore the "Rundll32" file

Find \i386\rundll32.ex_  in the XP/2000 disc, change the name to, and decompress with winrar. get

 

3. "Rundll32 error" display

DLL is a dynamic link library concept proposed by Microsoft. The principle is that the code required by each program can be obtained from the same address, which can save system space. But this has become Windows' biggest weakness: in order to make it run better when installing applications, they will upgrade these databases to their own versions, which will result in other programs not even Windows itself being unable to start, and DLLs become a "trap". The possible reason for the Rundll32 error is that the file in the operating system is damaged or lost, so you can copy this file on other computers to overwrite it; in addition, it may be that the relevant statements in the file are lost. The solution is: find the [boot ] section in C:\Windows, add drivers=, and restart after filling.

There is another convenient method for people using Windows 98. You can go directly to "Start" >> "Run", enter msconfig, and then on this page, open the boot folder, press Add, and add a new line of narrative: drivers=.

 

D. Comprehensive understanding of the files in the system

It is a very important file for NT core system and is indispensable for Win2000/XP. These svchost processes provide many system services, such as: rpcss service (remote procedure call), dmserver service (logical disk manager), dhcp service (dhcp client), etc.

If you want to know how many system services each svchost process provides, you can enter the "tasklist/svc" command in the WinXP command prompt window to view it.

Generally speaking, Windows system processes are divided into independent processes and shared processes. The file exists in the %systemroot%\system32 directory and belongs to the shared process.

With the increasing number of Windows system services, in order to save system resources, Microsoft has made many services in a shared way and handed over to the svchost process to start. However, the svchost process only serves as a service host and cannot implement any service functions, that is, it can only provide conditions for other services to be started here, but it itself cannot provide any services to the user.

How are these services implemented? It turns out that these system services are implemented in the form of dynamic link library (DLL). They point the executable program to svchost, and svchost calls the corresponding service's dynamic link library to start the service.

It is precisely because of the importance of svchost that viruses and *s also try their best to use it, trying to use its features to confuse users and achieve the purpose of infection, invasion, and destruction. So how should we determine which virus process is? Normal files should exist in the "C:\Windows\system32" directory. If you find that the file appears in other directories, be careful.

Tip: The calling path of the file can be viewed through "System Information → Software Environment → Running Tasks".
Previous page12345Next pageRead the full text