Solved How do I restore Windows Defender?


Maybe try resetting the Appx package:
Code:
powershell -C "Get-AppxPackage *Microsoft.SecHealthUI* | Reset-AppxPackage"
Thaanks, fixed this. For some reason, all store apps changed language.
 

My Computer

System One

  • OS
    Windows 11
I believe when sometimes you reset Windows, the SYSTEM profile gets a different locale assigned. Then various parts of Windows take the SYSTEM profile's settings instead of your own preferences.
 

My Computer

System One

  • OS
    Windows 7
Glad you got it working. I am surprised that the inplace repair didn't fix it though.

Wonder why. For me that has usually undone any amount of corruption or weirdness.

But as others have said, we don't know the lengths of what was originally done to remove defender.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Built
    CPU
    Ryzen 7 5700 X3D
    Motherboard
    MSI MPG B550 GAMING PLUS
    Memory
    64 GB DDR4 3600mhz Gskill Ripjaws V
    Graphics Card(s)
    RTX 4070 Super , 12GB VRAM Asus EVO Overclock
    Monitor(s) Displays
    Gigabyte M27Q (rev. 2.0) 2560 x 1440 @ 170hz HDR
    Hard Drives
    2TB Samsung nvme ssd
    2TB XPG nvme ssd
    PSU
    CORSAIR RMx SHIFT Series™ RM750x 80 PLUS Gold Fully Modular ATX Power Supply
    Case
    CORSAIR 3500X ARGB Mid-Tower ATX PC Case – Black
    Cooling
    ID-COOLING FROSTFLOW X 240 CPU Water Cooler
    Internet Speed
    900mbps DOWN, 100mbps UP
  • Operating System
    Chrome OS
    Computer type
    Laptop
    Manufacturer/Model
    HP Chromebook
    CPU
    Intel Pentium Quad Core
    Memory
    4GB LPDDR4
    Monitor(s) Displays
    14 Inch HD SVA anti glare micro edge display
    Hard Drives
    64 GB emmc
I cannot install a cumulative update now. It goes to 97% and then reports an error, rolls everything back.
 

My Computer

System One

  • OS
    Windows 11
I again have a problem. I rolled back my system because it did not update. So now I have to repeat all this restoration process. But I cannot: the registry file for Windows Defender does not import despite I run Regedit under Trusted Installer. Also, the UAC works, but I cannot control it because the UI does not start without Defender service running.

P.S. Regedit runs under System, not Trusted Installer. It seems, due to the update I cannot run regedit as TI.
 

My Computer

System One

  • OS
    Windows 11
Your system sounds permanently screwed.

I would backup your user data. Boot from an updated ISO, do an "upgrade install" so it keeps your existing programs and moves Windows to Windows.old.
 

My Computer

System One

  • OS
    Windows 7
Even Advanced Run cannot run a regedi as Trusted Installer, only as System, which is not enough. Maybe, UAC is the culprit. But I cannot disable UAC.
 

My Computer

System One

  • OS
    Windows 11
I again have a problem. I rolled back my system because it did not update. So now I have to repeat all this restoration process. But I cannot: the registry file for Windows Defender does not import despite I run Regedit under Trusted Installer. Also, the UAC works, but I cannot control it because the UI does not start without Defender service running.
I would just clean install at this point, but that's just me.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom Built
    CPU
    Ryzen 7 5700 X3D
    Motherboard
    MSI MPG B550 GAMING PLUS
    Memory
    64 GB DDR4 3600mhz Gskill Ripjaws V
    Graphics Card(s)
    RTX 4070 Super , 12GB VRAM Asus EVO Overclock
    Monitor(s) Displays
    Gigabyte M27Q (rev. 2.0) 2560 x 1440 @ 170hz HDR
    Hard Drives
    2TB Samsung nvme ssd
    2TB XPG nvme ssd
    PSU
    CORSAIR RMx SHIFT Series™ RM750x 80 PLUS Gold Fully Modular ATX Power Supply
    Case
    CORSAIR 3500X ARGB Mid-Tower ATX PC Case – Black
    Cooling
    ID-COOLING FROSTFLOW X 240 CPU Water Cooler
    Internet Speed
    900mbps DOWN, 100mbps UP
  • Operating System
    Chrome OS
    Computer type
    Laptop
    Manufacturer/Model
    HP Chromebook
    CPU
    Intel Pentium Quad Core
    Memory
    4GB LPDDR4
    Monitor(s) Displays
    14 Inch HD SVA anti glare micro edge display
    Hard Drives
    64 GB emmc
Okay, defender is seemingly running, but the security control panel is again blank.
 

My Computer

System One

  • OS
    Windows 11
Re-register it.
Code:
powershell -C Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"
 

My Computer

System One

  • OS
    Windows 7
Re-register it.
Code:
powershell -C Add-AppxPackage -Register -DisableDevelopmentMode "C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\AppXManifest.xml"
Cannot find path
C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy\Ap
pXManifest.xml because it does not exist.
 

My Computer

System One

  • OS
    Windows 11
Did the C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy folder disappear?
 

My Computer

System One

  • OS
    Windows 7
Maybe you are super-infected. An upgrade doesn't remove this folder.
 

My Computer

System One

  • OS
    Windows 7
Maybe you are super-infected. An upgrade doesn't remove this folder.
What happened: Windows Defender worked well. Bot an update of the system failed. So, I rolled back. Installed update. But noticed that the security service now works despite I did not enable it after rollback. So, I could not import registry values for Windows Defender service. No program allows to run regedit as Trusted Installer. Yet, after some time I noticed that Windows Defender service is working. So, as the both services are working, I re-installed the appx package. But the window is blank.
 

My Computer

System One

  • OS
    Windows 11
You probably can't change any settings if Tamper Protection is enabled. This prevents "unauthorized" changes even if you're TI.

Boot into Safe Mode, and try again after disabling the Defender services.
 

My Computer

System One

  • OS
    Windows 7
You probably can't change any settings if Tamper Protection is enabled. This prevents "unauthorized" changes even if you're TI.

Boot into Safe Mode, and try again after disabling the Defender services.
Yea, maybe installing of the unauthorized appx package is prevented by Windows Defender. First time I ran it when Windows Defender was disabled.

But will it install under safe mode?...
 

My Computer

System One

  • OS
    Windows 11
No program allows to run regedit as Trusted Installer

You could try Sordum PowerRun (It’s free) just as a last attempt. HAs always worked for me.


Click System Tools and select RegEdit.

IMG_5299.webp
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 Build 22631.5039
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz (4th Gen?)
    Motherboard
    ASUS ROG Maximus VI Formula
    Memory
    32.0 GB of I forget and the box is in storage.
    Graphics Card(s)
    Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    Sound Card
    Onboard
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Tablet
    Screen Resolution
    All over the place
    Hard Drives
    Too many to list.
    OS on Samsung 1TB 870 QVO SATA
    PSU
    Silverstone 1500
    Case
    NZXT Phantom 820 Full-Tower Case
    Cooling
    Noctua NH-D15 Elite Class Dual Tower CPU Cooler / 6 x EziDIY 120mm / 2 x Corsair 140mm somethings / 1 x 140mm Thermaltake something / 2 x 200mm Corsair.
    Keyboard
    Corsair K95 / Logitech diNovo Edge Wireless
    Mouse
    Logitech: G402 / G502 / Mx Masters / MX Air Cordless
    Internet Speed
    1000/400Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    I’m on a horse.
  • Operating System
    Windows 11 Pro 23H2 Build: 22631.4249
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7i EVO OLED 14" Touchscreen i5 12 Core 16GB/512GB
    CPU
    Intel Core 12th Gen i5-1240P Processor (1.7 - 4.4GHz)
    Memory
    16GB LPDDR5 RAM
    Graphics card(s)
    Intel Iris Xe Graphics Processor
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512GB
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.
No the point is you wanted to re-import the Defender settings. If Tamper Protection is enabled, Defender protects the registry from Defender reg changes. So you have to disable Defender to change Defender...

Tamper Protection works on the kernel level, above anything TI (PowerRun or whatever can do).
 

My Computer

System One

  • OS
    Windows 7

Latest Support Threads

Back
Top Bottom