Thanks — this looks like Windows Security (the Windows Defender UI) is running but its UI process is hung or its appx package / system permissions are damaged. You’ve already done a lot; below are the priority tests and repairs (in the order I’d try them). Do them from an elevated PowerShell or Admin Command Prompt where noted.
Quick diagnostic (do first)
- Create a new local administrator account and sign into it. Does Windows Security open there? If yes, the problem is profile-specific. If no, it’s system-wide (continue below).
- While signed in (problem account), open Task Manager → Details and look for SecurityHealthUI.exe or Windows.Security.Health.UI.exe. If it’s present, kill it (End Task) then try to start Windows Security again from Start → Windows Security.
Repair steps (run these in order)
1) Restart the Windows Security service
- Open an elevated Command Prompt / PowerShell and run:
sc stop SecurityHealthService
sc start SecurityHealthService
- Check status:
Get-Service -Name SecurityHealthService
2) Re-register the Windows Security (SecHealthUI) AppX package
- Open PowerShell as Administrator and run:
Get-AppxPackage -AllUsers Microsoft.SecHealthUI | ForEach-Object {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppxManifest.xml"}
- Restart the PC. Try opening Windows Security again.
3) Repair the component store and system files (DISM then SFC)
- In an elevated CMD/PowerShell:
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
- If DISM can’t repair, mount the matching Windows ISO and run:
DISM /Online /Cleanup-Image /RestoreHealth /Source:WIM:X:\sources\install.wim:1 /LimitAccess
(replace X: with the mounted ISO drive letter). Then run sfc /scannow again.
4) Reset Windows security descriptors (fixes broken service/registry permissions)
- This will reset many system security defaults (good for the wuauserv permission flips). Run from an elevated prompt:
secedit /configure /cfg %windir%\inf\defltbase.inf /db %temp%\scedit.sdb /verbose
- Reboot after it finishes. Re-run DISM + sfc if you like.
5) Check Group Policy / local policy
- Run gpedit.msc (if available) and check:
Computer Configuration → Administrative Templates → Windows Components → Microsoft Defender Antivirus
Computer Configuration → Administrative Templates → Windows Components → Windows Security
Make sure nothing is set to “Turn off Windows Security” or otherwise blocking the UI.
If those don’t work — targeted troubleshooting info to collect
If the problem persists, post the output (copy/paste) of these commands run from an elevated PowerShell/CMD so I can be more specific:
- Get-AppxPackage -AllUsers Microsoft.SecHealthUI | Format-List Name, PackageFullName, InstallLocation
- Get-Service -Name SecurityHealthService | Format-List *
- sc qc wuauserv
- sc sdshow WaaSMedicSvc
- whoami /groups
Also check Event Viewer right after you try to open Windows Security:
- Event Viewer → Applications and Services Logs → Microsoft → Windows → Windows Defender OR Windows Security (Operational) and also the System log. Look for errors or Access Denied (Event IDs/short messages) and paste those.
Why this is likely happening
- Your description (wuauserv permission flip, WaaSMedic error 5, SFC not fixing some files) strongly suggests the system security descriptors/permissions or some system files/registry keys are corrupted. The secedit reset + DISM/SFC usually fixes that. Re-registering the AppX package addresses a hung/corrupt UI package.
If none of the above fixes it
- Either do a clean install (backup first) or, if you prefer, I can walk you through an in-place repair upgrade again — but if you already did an in-place upgrade/repair and the problem remained, a clean install is the reliable fix for persistent permission/registry corruption.
If you want, start with the Quick diagnostic and steps 1–3 and tell me:
- Whether a new admin account can open Windows Security
- The outputs of the diagnostic commands above if they fail
I can then give the precise next commands (including safe power-user commands to fix specific registry/service permission issues) based on those outputs.