Sxs.exe's killing BAT code _dos/bat

Source: Internet
Author: User

Copy Code code as follows:

:: Echo Feature: Automatically generate Sxs.exe,autorun.inf file in each packing directory, some also generate SVOHOST.exe or sxs.exe under Windows\System32, file attribute is implied attribute. Disable antivirus software automatically
:: Workaround: Create batch file (content)
@echo off
taskkill/f/im sxs.exe/t
taskkill/f/im svohost.exe/t
C:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
D:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
E:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
F:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
G:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
H:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
I
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
J:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
K:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
L
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
M:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
N:
attrib sxs.exe-a-h-s
DEL/S/q/f Sxs.exe
attrib autorun.inf-a-h-s
DEL/S/q/f Autorun.inf
reg delete hklm\software\microsoft\windows\currentversion\explorer\advanced\folder\hidden\showall/v CheckedValue/ F
REG ADD hklm\software\microsoft\windows\currentversion\explorer\advanced\folder\hidden\showall/v "CheckedValue"/t "REG_DWORD"/"1"/F
REG DELETE hklm\software\microsoft\windows\currentversion\run/v sxs.exe/f
REG DELETE hklm\software\microsoft\windows\currentversion\run/v svohost.exe/f
Exit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.