卸载荣耀电脑管家捆绑的奇安信 (QAXDefender) 操作记录
卸载荣耀电脑管家捆绑的奇安信 (QAXDefender) 操作记录
机型:荣耀 magic book 14 2022 锐龙版
背景
系统日志(Kernel-Power Event ID 41)显示多次意外重启,排查发现 QAXDefender.SDK 和 QaxEngManager 服务启动失败/意外终止,是奇安信安全软件与系统冲突的典型症状。
系统组件分布
系统中存在两个 QAX 组件:
| 路径 |
来源 |
类型 |
C:\Program Files (x86)\qianxin\ |
独立安装 |
奇安信主程序 |
C:\Program Files\HONOR\PCManager\qspublic\qaxdefender.exe |
荣耀电脑管家捆绑 |
SDK 子组件 |
相关服务:
| 服务名 |
显示名称 |
可执行文件 |
QAXDefender.SDK |
QiAnXin SDK Defender Service |
...\PCManager\qspublic\qaxdefender.exe |
QaxEngManager |
QaxEngManager |
...\qianxin\ifl\QaxEngManager.exe |
前置分析
- 充电上限功能由
MBAMainService(HONOR PCManager Windows Service)控制,与 QAX 无关
- 卸载 QAX 不会影响荣耀电脑管家的电池管理功能
操作步骤(需管理员权限)
以下命令均在 以管理员身份运行的 PowerShell 中执行。
1. 停止 QAX 服务
1 2
| sc.exe stop "QAXDefender.SDK" sc.exe stop "QaxEngManager"
|
2. 禁用 QAX 服务(防止自动启动)
1 2
| sc.exe config "QAXDefender.SDK" start= disabled sc.exe config "QaxEngManager" start= disabled
|
注意:start= 和 disabled 之间有一个空格,不能省略。
3. 卸载独立奇安信
1 2 3
| $uninstaller = "C:\Program Files (x86)\qianxin\ifl\uninstall.exe" Start-Process -FilePath $uninstaller -Wait
|
4. 强杀残留进程
1 2 3 4
| $procNames = @("QaxEngManager", "QesSelfProtectRules", "BaeHelper", "qaxdefender") foreach ($n in $procNames) { Get-Process -Name $n -ErrorAction SilentlyContinue | Stop-Process -Force }
|
5. 删除服务注册
1 2
| sc.exe delete "QAXDefender.SDK" sc.exe delete "QaxEngManager"
|
6. 删除文件
1 2 3 4 5
| Remove-Item -LiteralPath "C:\Program Files (x86)\qianxin" -Recurse -Force
Remove-Item -LiteralPath "C:\Program Files\HONOR\PCManager\qspublic\qaxdefender.exe" -Force
|
7. 清理注册表残留
1 2 3 4 5 6 7 8 9 10 11 12 13
| $regPaths = @( "HKLM:\SOFTWARE\WOW6432Node\qianxin", "HKLM:\SOFTWARE\WOW6432Node\QiAnXin", "HKLM:\SOFTWARE\qianxin", "HKLM:\SOFTWARE\QiAnXin", "HKLM:\SYSTEM\CurrentControlSet\Services\QAXDefender.SDK", "HKLM:\SYSTEM\CurrentControlSet\Services\QaxEngManager" ) foreach ($rp in $regPaths) { if (Test-Path $rp) { Remove-Item -LiteralPath $rp -Recurse -Force } }
|
8. 清理计划任务
1 2 3 4 5
| Get-ScheduledTask | Where-Object { $_.TaskName -match 'QAX|qax|QiAnXin|qianxin' } | ForEach-Object { Unregister-ScheduledTask -TaskName $_.TaskName -Confirm:$false }
|
9. 验证结果
1 2 3 4 5 6 7 8
| Get-Service "QAX*", "Qax*"
if (Test-Path "C:\Program Files (x86)\qianxin") { "STILL EXISTS!" } else { "Gone" }
Get-Service "MBAMainService", "LCD_Service"
|
验证结果
| 项目 |
状态 |
| QAX 服务(QAXDefender.SDK、QaxEngManager) |
✅ 已删除 |
C:\Program Files (x86)\qianxin\ |
✅ 已删除 |
qaxdefender.exe(荣耀捆绑) |
✅ 已删除 |
| 注册表残留 |
✅ 已清理 |
| 计划任务 |
✅ 已清理 |
| 荣耀电脑管家主服务 (MBAMainService) |
✅ 正常运行 |
| HONOR LCD_Service |
✅ 正常运行 |
| 充电上限功能 |
✅ 不受影响 |
快速一键脚本
将以下内容保存为 clean_qax.ps1,以管理员身份运行:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| sc.exe stop "QAXDefender.SDK" 2>$null sc.exe stop "QaxEngManager" 2>$null sc.exe config "QAXDefender.SDK" start= disabled sc.exe config "QaxEngManager" start= disabled
$uninstaller = "${env:ProgramFiles32}\qianxin\ifl\uninstall.exe" if (Test-Path $uninstaller) { Start-Process -FilePath $uninstaller -Wait }
"QaxEngManager","QesSelfProtectRules","BaeHelper","qaxdefender" | ForEach-Object { Get-Process -Name $_ -ErrorAction SilentlyContinue | Stop-Process -Force } sc.exe delete "QAXDefender.SDK" 2>$null sc.exe delete "QaxEngManager" 2>$null
Remove-Item -LiteralPath "${env:ProgramFiles32}\qianxin" -Recurse -Force -ErrorAction SilentlyContinue Remove-Item -LiteralPath "${env:ProgramFiles}\HONOR\PCManager\qspublic\qaxdefender.exe" -Force -ErrorAction SilentlyContinue
$regPaths = @( "HKLM:\SOFTWARE\WOW6432Node\qianxin", "HKLM:\SOFTWARE\WOW6432Node\QiAnXin", "HKLM:\SOFTWARE\qianxin", "HKLM:\SOFTWARE\QiAnXin" ) $regPaths | ForEach-Object { if (Test-Path $_) { Remove-Item -LiteralPath $_ -Recurse -Force } }
Get-ScheduledTask | Where-Object { $_.TaskName -match 'QAX|qax|QiAnXin|qianxin' } | ForEach-Object { Unregister-ScheduledTask -TaskName $_.TaskName -Confirm:$false }
Write-Host "Done. Reboot recommended." -ForegroundColor Green
|
注意事项
- 必须管理员权限:所有核心操作(sc.exe、Remove-Item 删系统目录、注册表操作)都需要 UAC 提权
- 奇安信有自保护机制:如果文件删除失败,先运行步骤 4 强杀进程
- 重启生效:操作完成后建议重启,确保服务注册变更和驱动从内存中彻底清除
- 不要删除荣耀电脑管家主程序:仅删除
qspublic\qaxdefender.exe,保留其余组件