用自己或任意的窗口管理器替换掉Explorer.exe

本文讨论了使用自定义或第三方窗口管理器替代Windows默认的Explorer.exe以减少病毒风险的方法,并介绍了具体的实现步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Explorer.exe是windows的默认窗口管理器。 我目前的认知还不知道windows可否定制任意的窗口管理器以取代它。 重要的一点就是进程名可以更改为其他, 且二进制特征也区别于原来的Explorer.exe。 问题就是, 目前的各种病毒, 针对Explorer.exe的现在多得不得了。前两天我就中招了。只过是到一些网站下载了工具软件。 结果就被 感染了网页病毒。 如果寄希望于杀毒软件, 网络这些杀毒软件也是马后炮, 被感染的exe 有的往往不能修复,而只能删除。这是不能容忍的。 所以干脆Explorer.exe 吧。 用自己的,或者第三方的窗口管理器。 难道病毒制作者可以把所有第三方的窗口管理器都加入自己的 感染范围? HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\WindowsNT\\CurrentVersion\\Winlogo\\Shell 修改它即可替换为自己的 窗口管理器或任意程序。这样看这些小病毒把我怎么样? 但其实这也不能根本解问题, 因为只要我上网, 就是在不安全的境况下,难道我就不上网了?

转载于:https://www.cnblogs.com/microsoftxiao/archive/2006/11/22/568721.html

@echo off setlocal enabledelayedexpansion :: 检查管理员权限 echo 正在检查管理员权限... net session >nul 2>&1 if %errorlevel% neq 0 ( echo [错误] 请以管理员身份运行此脚本 pause exit /b 1 ) :: 状态显示函数 :exec echo [执行] %* %* >nul 2>&1 if errorlevel 1 ( echo [失败] %~1 ) else ( echo [成功] %~1 ) goto :eof :: 禁用右键共享菜单 call :exec reg delete "HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Sharing" /f call :exec reg delete "HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\Sharing" /f call :exec reg delete "HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\Sharing" /f call :exec reg delete "HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\Sharing" /f call :exec reg delete "HKEY_CLASSES_ROOT\LibraryFolder\background\shellex\ContextMenuHandlers\Sharing" /f :: 禁用还原到以前版本 call :exec reg delete "HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f call :exec reg delete "HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f call :exec reg delete "HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f call :exec reg delete "HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f call :exec reg delete "HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f call :exec reg delete "HKEY_CLASSES_ROOT\Directory\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f call :exec reg delete "HKEY_CLASSES_ROOT\Drive\shellex\ContextMenuHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f call :exec reg delete "HKEY_CLASSES_ROOT\Drive\shellex\PropertySheetHandlers\{596AB062-B4D2-4215-9F74-E9109B0A8153}" /f :: 禁用发送到菜单 call :exec reg delete "HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\SendTo" /f :: 禁用ModernSharing call :exec reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\ModernSharing" /f call :exec reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AllFilesystemObjects\shellex\ContextMenuHandlers\ModernSharing" /f :: 添加哈希校验菜单 call :exec reg add "HKEY_CLASSES_ROOT\*\shell\文件哈希校验" /v "SubCommands" /t REG_SZ /d "MD5;SHA1;SHA256;SHA384;SHA512;MACTripleDES;RIPEMD160" /f call :exec reg add "HKEY_CLASSES_ROOT\*\shell\文件哈希校验" /v "MUIVerb" /t REG_SZ /d "文件哈希校验" /f for %%a in (MACTripleDES MD5 RIPEMD160 SHA1 SHA256 SHA384 SHA512) do ( call :exec reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\%%a" /ve /d "%%a" /f call :exec reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell\%%a\command" /ve /d "PowerShell Get-FileHash -Algorithm %%a \"%%1\" | format-list;\"按任意键退出...\";[Console]::Readkey() | Out-Null;exit" /f ) :: 禁用粘滞键提示 call :exec reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v "Flags" /t REG_SZ /d "26" /f :: 关闭地图自动更新 call :exec reg add "HKEY_LOCAL_MACHINE\SYSTEM\Maps" /v "AutoUpdateEnabled" /t REG_DWORD /d 0 /f :: 刷新桌面 echo 正在刷新桌面资源管理器... taskkill /f /im explorer.exe >nul start explorer.exe echo [注意] 桌面即将重新加载... echo 所有操作已完成,请查看上述执行结果 pause这个脚本一直闪退
最新发布
03-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值