登錄檔危險元件刪除功能批處理

2022-09-20 11:27:12 字數 1717 閱讀 8603

把這個存成bat檔案執行,保你伺服器最基本的安全!

複製** **如下:

:: 登錄檔相關設定

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 登錄檔危險元件刪除設定完畢!

pause >nul

另外我們附送大家一段也不錯的批處理,建議能看懂代bzhspdtvmc碼的操作,如果使程式設計客棧用了,可以通過手工右鍵加入許可權即可。 下面的**需要xcacls.vbs 請先確定您的系統存在這個檔案。xcacls.vbs直接**

c盤安全加強.bat

複製** **如下:

:: 給黑客經常用到的系統檔案加everyone拒絕許可權,新手慎用!

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 "%sbzhspdtvmcystemroot%/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%/systbzhspdtvmcem32/cscript.exe" /d everyone:f /e

regsvr32 /s /u wshom.ocx

cscript.exe xcacls.vbs "%systemroot%/system32/wshom.ocx" /d everyone:f /e

echo c盤安全加強完畢! 請按任意鍵退出!

pause >nul

goto exit

本文標題: 登錄檔危險元件刪除功能批處理

本文位址: /os/regedit/85653.html

批處理操作登錄檔

1.新增 reg add keyname v valuename ve t type s separator d data f keyname machine fullkey 遠端機器的機器名 忽略預設到當前機器。遠端機器上只有 hklm 和 hku。fullkey rootkey subkey r...

語言 批處理 刪除登錄檔中的項

reg delete keyname v valuename ve va f keyname machine fullkey machine 遠端機器名 忽略當前機器的預設值。遠端機器上只有 hklm 和 hku。fullkey rootkey subkey rootkey hklm hkcu hk...

編寫登錄檔reg檔案及批處理操作登錄檔

windows registry editor version 5.00 hkey current user software microsoft windows currentversion policies system disableregistrytools dword 00000000注意...