吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 175|回复: 17
收起左侧

[经验求助] Defender Remover 12.8.2 卸载安全中心后,有办法再恢复回来吗?

[复制链接]
mywlyx 发表于 2026-5-3 12:17
50吾爱币
我用Defender Remover 12.8.2,把WINDOWS安全中心去掉了。可是今天需要设置内核隔离,这安全中心打不开,设置不了。跟豆包大战800回合脚本恢复,也没有成功,各种大佬们,有谁知道好办法吗?

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

dongyu丶 发表于 2026-5-3 12:31
你是禁用了还是删掉了,禁用了用你的工具应该可以恢复,他有关闭没有开启吗,删掉了不知道有没有安装包,下个微软原版镜像覆盖试试
 楼主| mywlyx 发表于 2026-5-3 12:40
dongyu丶 发表于 2026-5-3 12:31
你是禁用了还是删掉了,禁用了用你的工具应该可以恢复,他有关闭没有开启吗,删掉了不知道有没有安装包,下 ...

是移除WindowsDefender
 楼主| mywlyx 发表于 2026-5-3 12:41
dongyu丶 发表于 2026-5-3 13:13
mywlyx 发表于 2026-5-3 12:40
是移除WindowsDefender

https://lzydongyu.lanzouq.com/itgGg3kap0xc
密码:52pj     移除估计就没了,下次你用我这个试试,
 楼主| mywlyx 发表于 2026-5-3 13:18
dongyu丶 发表于 2026-5-3 13:13
https://lzydongyu.lanzouq.com/itgGg3kap0xc
密码:52pj     移除估计就没了,下次你用我这个试试,

谢谢你,但是在繁体中文的系统下,这个程序无法运行
lzy8108 发表于 2026-5-3 15:05
重新安装WINDOWS安全中心不可以吗
以管理员身份在cmd下用sfc /scannow扫描修复一下看看
 楼主| mywlyx 发表于 2026-5-3 15:08
lzy8108 发表于 2026-5-3 15:05
重新安装WINDOWS安全中心不可以吗
以管理员身份在cmd下用sfc /scannow扫描修复一下看看

@echo off
title Defender Remover 12.8.2 一键恢复脚本(管理员专用)
color 0A
echo ==============================================
echo 正在执行 Defender Remover 12.8.2 一键恢复...
echo 请勿关闭此窗口,执行完毕后会提示重启电脑!
echo ==============================================
echo.

:: 第一步:工具自带恢复(优先尝试)
echo 【第一步】尝试工具自带恢复...
if exist "DefenderRemover.exe" (
    echo 找到 DefenderRemover.exe,执行自带恢复命令...
    DefenderRemover.exe /restore
    echo 自带恢复命令执行完毕,继续后续恢复步骤...
    echo.
) else (
    echo 未找到 DefenderRemover.exe,跳过自带恢复,直接执行手动恢复...
    echo.
)

:: 第二步:恢复核心隔离(VBS/内存完整性)
echo 【第二步】恢复核心隔离(VBS/内存完整性)...
bcdedit /set hypervisorlaunchtype auto >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v EnableVirtualizationBasedSecurity /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\HvHost" /v Start /t REG_DWORD /d 2 /f >nul 2>&1
echo 核心隔离相关设置恢复完成...
echo.

:: 第三步:恢复安全中心服务(wscsvc、SecurityHealthService)
echo 【第三步】恢复安全中心服务...
powershell -Command "$null = New-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\wscsvc' -Force; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\wscsvc' -Name 'Start' -Value 2 -Type DWord; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\wscsvc' -Name 'Type' -Value 16 -Type DWord; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\wscsvc' -Name 'DisplayName' -Value 'Windows Security Center'; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\wscsvc' -Name 'ImagePath' -Value 'C:\Windows\System32\wscsvc.dll'" >nul 2>&1
powershell -Command "$null = New-Item -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\SecurityHealthService' -Force; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\SecurityHealthService' -Name 'Start' -Value 2 -Type DWord; Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\SecurityHealthService' -Name 'ImagePath' -Value 'C:\Windows\System32\SecurityHealthService.exe'" >nul 2>&1
powershell -Command "Start-Service wscsvc -ErrorAction SilentlyContinue" >nul 2>&1
powershell -Command "Start-Service SecurityHealthService -ErrorAction SilentlyContinue" >nul 2>&1
echo 安全中心服务恢复完成...
echo.

:: 第四步:恢复安全中心UI(SecHealthUI)
echo 【第四步】恢复安全中心UI...
powershell -Command "Add-AppxPackage -Register 'C:\Windows\SystemApps\Microsoft.SecHealthUI_cw5n1h2txyewy\AppxManifest.xml' -DisableDevelopmentMode -ErrorAction SilentlyContinue" >nul 2>&1
powershell -Command "Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage -ErrorAction SilentlyContinue" >nul 2>&1
echo 安全中心UI恢复完成...
echo.

:: 第五步:恢复 Defender 杀毒服务(WinDefend)
echo 【第五步】恢复 Defender 杀毒服务...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 0 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 0 /f >nul 2>&1
sc create WinDefend binPath= "C:\ProgramData\Microsoft\Windows Defender\MsMpEng.exe" type=share start=auto displayname= "Windows Defender Service" >nul 2>&1
net start WinDefend >nul 2>&1
echo Defender 服务恢复完成...
echo.

:: 第六步:修复系统文件
echo 【第六步】修复系统文件(可能需要几分钟,请耐心等待)...
sfc /scannow >nul 2>&1
DISM /Online /Cleanup-Image /RestoreHealth >nul 2>&1
echo 系统文件修复完成...
echo.

:: 第七步:恢复 UAC、SmartScreen
echo 【第七步】恢复 UAC、SmartScreen...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v EnableSmartScreen /t REG_DWORD /d 1 /f >nul 2>&1
echo UAC、SmartScreen 恢复完成...
echo.

:: 执行完毕,提示重启
echo ==============================================
echo 所有恢复步骤执行完毕!
echo 请立即重启电脑,否则恢复无法生效!
echo 重启后请检查:Windows 安全中心是否能打开、核心隔离是否可开启
echo ==============================================
pause
shutdown /r /t 10 /c "Defender 恢复完成,即将重启电脑..."




无效.............................
 楼主| mywlyx 发表于 2026-5-3 15:11
@echo off
cd /d "%~dp0"
title Win11 Defender Full Restore (Admin Only)
color 0C
echo ==============================================
echo MUST RUN AS ADMINISTRATOR !
echo ==============================================
pause
echo.

:: 1. Remove Defender disable policies
echo [1/8] Clearing Defender disable policies...
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /f >nul 2>&1
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 0 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 0 /f >nul 2>&1
echo Policies cleared.
echo.

:: 2. Restore core service registry keys
echo [2/8] Restoring Defender service registry...
:: WinDefend
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 2 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v Type /t REG_DWORD /d 16 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v DisplayName /t REG_SZ /d "Windows Defender Antivirus Service" /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v ImagePath /t REG_SZ /d "C:\ProgramData\Microsoft\Windows Defender\MsMpEng.exe" /f >nul 2>&1

:: wscsvc
reg add "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc" /v Start /t REG_DWORD /d 2 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc" /v Type /t REG_DWORD /d 16 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc" /v DisplayName /t REG_SZ /d "Windows Security Center" /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\wscsvc" /v ImagePath /t REG_SZ /d "C:\Windows\System32\wscsvc.dll" /f >nul 2>&1

:: SecurityHealthService
reg add "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v Start /t REG_DWORD /d 2 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /v ImagePath /t REG_SZ /d "C:\Windows\System32\SecurityHealthService.exe" /f >nul 2>&1
echo Service registry restored.
echo.

:: 3. Restore Core Isolation / VBS
echo [3/8] Restoring Core Isolation and VBS...
bcdedit /set hypervisorlaunchtype auto >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v EnableVirtualizationBasedSecurity /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity" /v Enabled /t REG_DWORD /d 1 /f >nul 2>&1
echo Core Isolation restored.
echo.

:: 4. Reinstall Security Health UI
echo [4/8] Reinstalling Windows Security UI...
powershell -Command "Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Remove-AppxPackage -AllUsers" >nul 2>&1
powershell -Command "Add-AppxPackage -Register 'C:\Windows\SystemApps\Microsoft.SecHealthUI_cw5n1h2txyewy\AppxManifest.xml' -DisableDevelopmentMode" >nul 2>&1
powershell -Command "Get-AppxPackage Microsoft.SecHealthUI -AllUsers | Reset-AppxPackage" >nul 2>&1
echo Security UI reinstall completed.
echo.

:: 5. Start related services
echo [5/8] Starting security services...
net start wscsvc >nul 2>&1
net start SecurityHealthService >nul 2>&1
net start WinDefend >nul 2>&1
echo Services started.
echo.

:: 6. Rebuild Defender scheduled tasks
echo [6/8] Rebuilding Defender scheduled tasks...
schtasks /create /tn "\Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /tr "C:\ProgramData\Microsoft\Windows Defender\MsMpEng.exe" /sc daily /st 02:00 /ru "SYSTEM" /f >nul 2>&1
schtasks /create /tn "\Microsoft\Windows\Windows Defender\Windows Defender Verification" /tr "C:\ProgramData\Microsoft\Windows Defender\MsMpEng.exe" /sc weekly /st 01:00 /ru "SYSTEM" /f >nul 2>&1
echo Scheduled tasks rebuilt.
echo.

:: 7. System file repair
echo [7/8] Scanning and repairing system files...
echo Please wait, this may take several minutes...
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth
echo System repair finished.
echo.

:: 8. Restore UAC & SmartScreen
echo [8/8] Restoring UAC and SmartScreen...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v EnableSmartScreen /t REG_DWORD /d 1 /f >nul 2>&1
echo UAC and SmartScreen restored.
echo.

echo ==============================================
echo All restore steps finished!
echo Please restart your computer immediately.
echo After reboot: Press Win+R and run windowsdefender:
echo ==============================================
pause
shutdown /r /t 5 /c "Defender restore completed, system will restart"


也无效............................

难道只剩下重新装系统了么
lzy8108 发表于 2026-5-3 15:59
mywlyx 发表于 2026-5-3 15:11
@echo off
cd /d "%~dp0"
title Win11 Defender Full Restore (Admin Only)

https://c.wss.ink/f/jt60pngkkrp 复制链接到浏览器打开

试试微软官方的方法:
下载这个链接中的疑难解答程序并运行,卸载已安装的Python,重新安装之后再打开看看是否能正常使用
我之前有几个软件安装好了不能运行都是用这个疑难解答搞定的。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - 52pojie.cn ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2026-5-5 22:08

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表