|
|
发表于 2026-10-29 14:54:30
|
显示全部楼层
一楼代码有几个明显错误如下:
一。用 reg.exe 修改 HKLM 所属键值须用管理员身份
二。用 taskkill.exe 删除包含通配符的进程须用 /fi 过滤器
三。批处理自建的变量名不要与系统占用名冲突
以下是给予订正的代码...
test.bat
- @echo off &fltmc>nul 2>&1 || (powershell -nop -c "start '%~f0' -verb runas" &exit/b)
- set "d=c:\win10" &taskkill /f /fi "imagename eq iexplo*" /im * >nul
- echo ---正在解除.........
- Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "FilterAdministratorToken" /t REG_DWORD /d "0" /f > nul
- Reg.exe add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "EnableLUA" /t REG_DWORD /d "0" /f > nul
- Reg.exe add "HKCU\Control Panel\International\User Profile" /v "HttpAcceptLanguageOptOut" /t REG_DWORD /d "1" /f > nul
- timeout /t 1 /nobreak >nul
- "%d%\3.exe"
- timeout /t 1 /nobreak >nul
- "%d%\4.exe"
- timeout /t 1 /nobreak >nul
- "%d%\5.exe"
- taskkill /f /fi "imagename eq iexplo*" /im * >nul
- echo 修复WIN10无法点击的问题
- Reg add "HKCU\Software\Microsoft\Internet Explorer\International" /v AcceptLanguage /t REG_SZ /d "zh-CN,q=0.8,en-US;q=0.5,en;q=0.3" /f > nul
- timeout /t 1 /nobreak >nul
- "%d%\DefenderControl.exe"
- timeout /t 1 /nobreak >nul
- "%d%\8.exe"
- timeout /t 2 /nobreak >nul
- "%d%\9.exe"
- rd /s /q "%d%"
- pause&exit/b
复制代码 |
|