Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use batch processing to delete dangerous components in the registry

Shulou Source: shulou.com Published: 2022-06-03 07:50:51 09月29日 Update

This article mainly introduces how to use batch processing to delete dangerous components of the registry. It is very detailed and has certain reference value. Friends who are interested must finish reading it.

Save this as a bat file to run to ensure the most basic security of your server!

The code is as follows:

:: registry related settings

Reg delete HKEY_CLASSES_ROOT\ WScript.Shell / f

Reg delete HKEY_CLASSES_ROOT\ WScript.Shell.1 / f

Reg delete HKEY_CLASSES_ROOT\ Shell.application / f

Reg delete HKEY_CLASSES_ROOT\ Shell.application.1 / f

Reg delete HKEY_CLASSES_ROOT\ WSCRIPT.NETWORK / f

Reg delete HKEY_CLASSES_ROOT\ WSCRIPT.NETWORK.1 / f

Regsvr32 / s / u wshom.ocx

Regsvr32 / s / u wshext.dll

Regsvr32 / s / u shell32.dll

Echo registry dangerous components delete settings are complete!

PAUSE > nul

In addition, a good batch is attached. It is recommended that you can understand the operation of the code. If you use it, you can right-click to add permissions. The following code requires xcacls.vbs. Please make sure that this file exists on your system. XCACLS.vbs downloads http://xiazai.jb51.net/201008/tools/XCACLS.rar directly

Disk C security enhancement. bat

The code is as follows:

:: add Everyone deny permission to the system files often used by hackers, and beginners should use them with caution!

Regsvr32 / s wshom.ocx

Cscript.exe xcacls.vbs "% SystemRoot%/system32/cmd.exe" / D Everyone:F / E

Cscript.exe xcacls.vbs "% SystemRoot%/system32/net.exe" / D Everyone:F / E

Cscript.exe xcacls.vbs "% SystemRoot%/system32/net1.exe" / D Everyone:F / E

Cscript.exe xcacls.vbs "% SystemRoot%/system32/cacls.exe" / D Everyone:F / E

Cscript.exe xcacls.vbs "% SystemRoot%/system32/wscript.exe" / D Everyone:F / E

Cscript.exe xcacls.vbs "% SystemRoot%/system32/command.com" / D Everyone:F / E

Cscript.exe xcacls.vbs "% SystemRoot%/system32/xcopy.exe" / D Everyone:F / E

Cscript.exe xcacls.vbs "% SystemRoot%/system32/cscript.exe" / D Everyone:F / E

Regsvr32 / s / u wshom.ocx

Cscript.exe xcacls.vbs "% SystemRoot%/system32/wshom.ocx" / D Everyone:F / E

The security of Echo C disk has been strengthened. Please press any key to exit!

PAUSE > nul

Goto exit

The above is all the contents of the article "how to use batch processing to delete dangerous components in the registry". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Registry code hazards components security files functions content permissions articles systems good value interests can be passed guys buddies suggestions manual novice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker OPPO Reno NVidia Xiaomi