Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report