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 My Computer

At a glance

Windows 11
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 My Computer

At a glance

Windows 7
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 My Computers

  • At a glance

    Windows 11 ProRyzen 7 5700 X3D64 GB DDR4 3600mhz Gskill Ripjaws VRTX 4070 Super , 12GB VRAM Asus EVO Overclock
    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
    4TB Western Digital 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
    Keyboard
    Logitech G213
    Mouse
    Logitech G203
    Internet Speed
    1.2gbps Fiber 😎
  • At a glance

    Chrome OSIntel Pentium Quad Core4GB LPDDR4
    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 My Computer

At a glance

Windows 11
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 My Computer

At a glance

Windows 11
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 My Computer

At a glance

Windows 7
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 My Computer

At a glance

Windows 11
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 My Computers

  • At a glance

    Windows 11 ProRyzen 7 5700 X3D64 GB DDR4 3600mhz Gskill Ripjaws VRTX 4070 Super , 12GB VRAM Asus EVO Overclock
    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
    4TB Western Digital 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
    Keyboard
    Logitech G213
    Mouse
    Logitech G203
    Internet Speed
    1.2gbps Fiber 😎
  • At a glance

    Chrome OSIntel Pentium Quad Core4GB LPDDR4
    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 would just clean install at this point, but that's just me.
Why? I just cannot import a registry key. Because no utility to run a program as trusted installer works after update.
 

My Computer My Computer

At a glance

Windows 11
OS
Windows 11
Okay, defender is seemingly running, but the security control panel is again blank.
 

My Computer My Computer

At a glance

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

My Computer My Computer

At a glance

Windows 7
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 My Computer

At a glance

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

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Did the C:\Windows\SystemApps\Microsoft.Windows.SecHealthUI_cw5n1h2txyewy folder disappear?
There is no such folder...
 

My Computer My Computer

At a glance

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

My Computer My Computer

At a glance

Windows 7
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 My Computer

At a glance

Windows 11
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 My Computer

At a glance

Windows 7
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 My Computer

At a glance

Windows 11
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 My Computers

  • At a glance

    Windows 11 Pro 25H2 Build 26200.8894Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz32.0 GB of I forget and the box is in storage.Gigabyte nVidia GeForce GTX 1660 Super OC 6GB
    OS
    Windows 11 Pro 25H2 Build 26200.8894
    Computer type
    PC/Desktop
    Manufacturer/Model
    Sin-built 2013
    CPU
    Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
    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
    ROG SupremeFX Formula 8-Channel High Definition Audio
    Monitor(s) Displays
    5 x LG 25MS500-B - 1 x 24MK430H-B - 1 x Wacom Pro 22" Touch Screen 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
    2000/500Mbps
    Browser
    All sorts
    Antivirus
    Kaspersky Premium
    Other Info
    ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
    TP-Link BE9300 WiFi 7 Bluetooth 5.4 (Archer TBE550E)
    TP-Link TX201 V1 2.5GB Lan

    Grandstream HT812 - VoIP
    ASUS DSL-AX82U - Mesh
    ASUS RT-AC68U - Mesh
    ASUS RT-BE88U Router

    Brother MFC-L2880DW Printer

    I’m on a horse.
  • At a glance

    Windows 11 Pro 25H2 Build 26200.8894 (Wifes)13th Generation Intel® Core™ i5-1340P Process...16GB LPDDR5-52001x Intel® Iris® Xe Graphics
    Operating System
    Windows 11 Pro 25H2 Build 26200.8894 (Wifes)
    Computer type
    Laptop
    Manufacturer/Model
    LENOVO Yoga 7 14IRL8 - Type 82YL
    CPU
    13th Generation Intel® Core™ i5-1340P Processor(Core™ i5-1340P)
    Memory
    16GB LPDDR5-5200
    Graphics card(s)
    1x Intel® Iris® Xe Graphics
    Sound Card
    Optimized with Dolby Atmos®
    Screen Resolution
    QHD 2880 x 1800 OLED
    Hard Drives
    M.2 512 GB SSD PCIe
    Mouse
    Logiteck MX Master 3S
    Internet Speed
    2000/500
    Antivirus
    Defender / Malwarebytes
    Other Info
    …still on a horse.


    Wireless Network: Wi-Fi 6E 2x2 AX; Bluetooth® 5.1 or above
    Ports: 1x 1 Novo button; 2 in 1 Audio Combo jack; Micro SD Card Reader; HDMI 1.4b; 2 x USB Type-C (TBT4)
    USB 3.2 Gen 2 DP 1.4a
    PD 3.0); 1 x USB 3.2 Gen1 Type A
    Camera
    1x 1080P FHD IR/RGB Hybrid with Privacy Shutter and Dual Array Microphone
    Graphics
    1x Intel® Iris® Xe Graphics
    Monitor
    14" WUXGA
    Form Factor
    Convertible Notebook
  • Windows 11 Pro 25H2 Build 26200.8894 (Wifes)

    Yoga 7 2-in-1 14IML9 - Type 83DJ

    Processor: Intel® Core™ Ultra 7 155H Processor(Core™ Ultra 7 155H)

    Memory: 32GB LPD5X-7467

    Hard Drive: 1 TB SSD PCIe

    Wireless Network: 1x Wi-Fi 6E 2x2 AX; Bluetooth® 5.1 or above

    Ports: 1 x HDMI 2.1 TMDS; 1 x Novo Button; 1 x Combo Audio Jack
    2 x USB-C (USB 4.0)
    1 x USB-A 3.2 Gen 1

    Camera: 1080P FHD IR Hybrid with Dual Microphone

    Graphics: Intel® Arc™ Graphics

    Monitor: 14" 2.8K

    ...Where's my 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 My Computer

At a glance

Windows 7
OS
Windows 7
Back
Top Bottom