Thanks for the clarifications and the screenshot.
Since you are running Windows 11 Home, your system doesn't natively use Group Policies. The fact that those registry blocks exist and your WinDefend service is completely missing strongly suggests that your system was compromised by malware at some point, which intentionally stripped away your antivirus defenses to protect itself.
Because the core security engine is gone, standard commands won't work. You need to approach this in three phases: Cleaning, registry repair, and system restoring.
1 = Since Windows Defender is non-functional, you need specialized, standalone scanners that don't rely on Windows services. Please download and run full scans using these free tools:
- Microsoft Safety Scanner (MSERT): Download it from the link below.
https://docs.microsoft.com/en-us/windows/security/threat-protection/intelligence/safety-scanner-download
- Malwarebytes (Free version): Download it from the link below.
https://malwarebytes.com/
After scanning, you can uninstall it.
- Note: MSERT is an official standalone tool from Microsoft that runs independently of your broken local services. Run these scans even if you think the PC is clean now, just to ensure no active malware is blocking our next repair steps.
2 = Once the system is verified clean, let's remove the policies blocking Defender.
- Press Windows + R, type
regedit, and hit Enter;
- Navigate to:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
- In the right pane, right-click and Delete all the DWORD values listed there (including DisableAntiVirus, DisableAntiSpyware, DisableRoutinelyTakingAction, and any others you see). Only leave the (Default) value untouched;
- Restart (not shutdown) your computer.
3 = Since the "WinDefend" service was completely deleted, the most reliable way to reinstall it without losing any of your personal files or apps is performing an In-place Upgrade. This will rewrite your core system files and completely restore the missing Windows Security services while keeping everything else intact. I will leave detailed instructions below.
Download the ISO file to perform the procedure:
- Access the link below;
https://www.microsoft.com/en-us/software-download/windows11
- Under Download Windows 11 Disk Image (ISO) for x64 devices, click Select download and select Windows 11 (multi-edition ISO for x64 devices);
- Click Download;
- Choose the language and click on Confirm;
- Then, click 64-bit Download.
- Wait for the download to finish and proceed to the procedure below.
After downloading the ISO, do the following:
- Double-click the ISO to run;
(After running the ISO, you may need to double-click the Setup file to start the procedure.)
- On the Install Windows 11 screen, uncheck I want to help make the installation of Windows better and select Change how Windows Setup downloads updates;
- On the next screen, select Not right now and click Next;
- Accept the terms of use;
- On the Ready to install screen, select Choose what to keep and select what you want to keep.
(It is in this step that you must check Keep personal files and apps so that all your data is kept.)
- Click on Install and wait for the procedure to finish. Your computer may restart several times.
After the procedure is complete, check if Windows Security opens correctly.
Please let me know how it goes.
Feel free to ask any questions you may have.
Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.