One-click killing stubborn virus and you are a clean computer

  
My relatives always like to use the computer to download things that are in a mess. Every time they bring a variety of viruses, many stubborn viruses need to be checked under the PE. Every time I have to use the boot disk to enter the PE, and then start the anti-virus software to kill the virus, kill the poison and then restart into the original system, it is very troublesome. Is there a way to auto-virus under PE? It is best to do it with one click. [Solutions] Since the most effective way to achieve one-click anti-virus is to use batch anti-virus software. However, by default, ordinary PE (such as PE3.0 extracted from the Windows 8 installation CD) enters the Windows 8 installation interface, so to achieve one-click anti-virus, just put the anti-virus batch command (after adding anti-virus) Automatic restart) is configured as the default startup item of PE. [Solution method] Make anti-virus batch first prepare command line anti-virus software, here is recommended to use ClamWin Portable (download address: http://tinyurl.com/lw74ntu), it is not only green version, but also supports command line mode to kill . Install it in the K:\\sd directory (you can install it in other locations as appropriate, but be careful to change the corresponding drive letter in the code below), then start the program and follow the prompts to upgrade its virus to the latest version. Start Notepad Create a new Shadu.bat batch file and place it on the D drive. The code is as follows: K:\\sd\\App\\clamwin\\bin\\clamscan.exe --database="K:\\sd\\Data\\db" -- Recursive --log=k:\\scan.txt C:\\wpeutil reboot command explanation: The first line of code means to call Clamscan.exe Clamscan.exe command line to scan the C drive (you can add the scan partition yourself, each partition is staggered with a half-width space) ), “--database” refers to the location of the virus database, and also outputs the scan results to the K:\\scan.txt file for easy scanning of the scan results. “wpeutil reboot” is to call the PE's own Wpeutil command to achieve automatic restart after the automatic anti-virus completion (this command is invalid under normal system). Now start the above batch processing, see if the anti-virus software command line is scanning the local C drive (if you want to scan other partitions, please add your own code), and complete the anti-virus batch processing after the test is correct (Figure 1). Figure 1 Anti-virus command line scan Because only the executable file can be added to the boot entry of the PE, so also download the "BAT to EXE tool" (fast batch file compiler, download address: http://dwz. Cn/cfann09), after running, click “file → open”, import D:\\shadu.bat, then click “project →compile”, convert the batch to aa.exe and place it in D:\\ Save (Figure 2). Figure 2 Convert batch processing to EXE file Configuration command line tool for PE startup item The next step is to add the anti-virus batch to the PE startup item. The PE here takes the PE3.0 extracted from the Windows 8 installation CD as an example. The operating system is Windows 7 Ultimate. Prepare the Windows 8 installation file and load it in Explorer, then extract “\\sources\\boot.wim” to “C:\\boot\\” Then go to http://tinyurl.com/lcwg5tv to download “DISM Manager", start the program and click “mount”, follow the prompts to mount “C:\\boot\\boot.wim” Index2 in the image In the figure below, the system name is marked as “Microsoft Windows Setup (X86)”, and it is mounted to “J:\\win8”. (You need to create a mount directory in J disk in advance, Figure 3 ). Figure 3 Mounting the Index2 image to J:\\Win8 The Index2 image in the Boot.wim image is mounted to the directory "J:\\win8". Start the Notepad program and create a new file named "Winpeshl.ini", and save it in the J:\\win8\\Windows\\System32 folder. The code is as follows: [LaunchApp]AppPath = d:\\aa.exe Note: There is a half-width space between the code in the code. Return to the “DISM Manager”, select the above mounted image in the mirror list, click “Save Image”, save the image with the Winpeshl.ini file, and click “Delete Mount”. (Figure 4). Figure 4 Save and unload the image Tip: Winpeshl.ini file is the WinPE startup configuration file. After adding this file in Boot.wim, WinPE will automatically load the specified program, which is the homemade aa.exe file. If you want to change the anti-virus parameters later, just make the batch processing as above, then convert it to Aa.exe and place it in D:\\. After the anti-virus operation completes the above operation, we only need to add the PE with the anti-virus batch startup to the boot menu. The addition of the boot menu is very simple. Use Bootice.exe that has been introduced several times before. Go to the BCD menu and edit the window and set it as shown below (Figure 5). Boot disk: current hard disk boot partition: save the partition where the Boot.wim file is located, ie the C drive device file: \\boot\\boot.wimSDI file: \\boot\\boot.sdi menu title: Windows PE one-click anti-virus boot file: \\windows\\ System32\\boot\\winload.exe Others take the default settings, click “Save current system settings" and “Save global settings” Exit. Figure 5 Configure PE antivirus to multi-boot menu. When you need to enter PE antivirus, you can select “<quo;Windows PE One-Click Antivirus” in the boot menu. After entering PE, the above batch will be activated automatically for antivirus. Automatic restart (Figure 6). Figure 6 boot select one-click anti-virus to complete the anti-virus and restart into the original system, we can also use the Notepad program to open K:\\scan.log to view the detailed scan results. This article comes from [System Home] www.xp85.com
Copyright © Windows knowledge All Rights Reserved