I installed a faulty program that deleted my windows defender

Anonymous
2024-12-23T02:36:03+00:00

Hello, same as this thread:

https://answers.microsoft.com/en-us/windows/forum/all/how-to-reinstall-windows-security-in-windows-10/ebcfe340-9d23-47ca-b749-bd9e0590c13a

I installed a faulty program which deleted my windows defender.. I ran FRST and will attach it below. https://drive.google.com/drive/folders/1JNDSz-cVonZ-AxJSSRKinzCK6iuT-heN?usp=share_link

Can someone please help me?

Windows for home | Windows 10 | Security and privacy

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

75 answers

Sort by: Most helpful
  1. Ramesh 181.6K Reputation points Volunteer Moderator
    2024-12-24T16:32:21+00:00

    when running set id=07 blue screen with error message and the pc restarted

    Hmm. You may have to replace the disk, I think.

    Now that we've moved Winre to the OS partition, let's test our luck again. If setup runs fine, that would be great. Else, the disk needs replacement.

    Please insert the USB setup disk and run "setup.exe".

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-12-24T16:29:21+00:00

    when running set id=07 blue screen with error message and the pc restarted

    Was this answer helpful?

    0 comments No comments
  3. Ramesh 181.6K Reputation points Volunteer Moderator
    2024-12-24T16:27:43+00:00

    The 1st part ran fine.

    Please run:

    • diskpart
    • sel disk 0
    • sel part 3
    • set id=07 override
    • exit

    Post the output.

    Post screenshot of Disk Management.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-12-24T16:22:40+00:00

    Microsoft Windows [Version 10.0.19045.5247]

    (c) Microsoft Corporation. All rights reserved.

    C:\WINDOWS\system32>del c:\windows\system32\recovery\reagent.xml /a

    Could Not Find c:\windows\system32\recovery\reagent.xml

    C:\WINDOWS\system32>md C:\Recovery\WindowsRE

    A subdirectory or file C:\Recovery\WindowsRE already exists.

    C:\WINDOWS\system32>xcopy /h C:\Windows\System32\Recovery\winre.wim C:\Recovery\WindowsRE\

    C:\Windows\System32\Recovery\Winre.wim

    1 File(s) copied

    C:\WINDOWS\system32>reagentc /setreimage /path C:\Recovery\WindowsRE /target C:\Windows

    Directory set to: \?\GLOBALROOT\device\harddisk0\partition2\Recovery\WindowsRE

    REAGENTC.EXE: Operation Successful.

    C:\WINDOWS\system32>reagentc /enable

    REAGENTC.EXE: Operation Successful.

    C:\WINDOWS\system32>reagentc /info

    Windows Recovery Environment (Windows RE) and system reset configuration

    Information:

    Windows RE status:         Enabled
    
    Windows RE location:       \\?\GLOBALROOT\device\harddisk0\partition2\Recovery\WindowsRE
    
    Boot Configuration Data (BCD) identifier: ba0a1c2a-c212-11ef-9e4e-fcaa14625780
    
    Recovery image location:
    
    Recovery image index:      0
    
    Custom image location:
    
    Custom image index:        0
    

    REAGENTC.EXE: Operation Successful.

    C:\WINDOWS\system32>diskpart

    Microsoft DiskPart version 10.0.19041.3636

    Copyright (C) Microsoft Corporation.

    On computer: WINDOWS-QGK6LB9

    DISKPART> sel disk 0

    Disk 0 is now the selected disk.

    DISKPART> sel part 3

    Partition 3 is now the selected partition.

    DISKPART> set id=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7

    The specified type is not in the correct format.

    For more information on the command type: HELP SET

    DISKPART> gpt attributes=0x0000000000000000

    The selected partition is not a GPT partition.

    Please select a valid GPT partition and try again.

    DISKPART> exit

    Leaving DiskPart...

    C:\WINDOWS\system32>

    Was this answer helpful?

    0 comments No comments
  5. Ramesh 181.6K Reputation points Volunteer Moderator
    2024-12-24T16:17:07+00:00

    Yes, admin CMD.

    Was this answer helpful?

    0 comments No comments