Yes, admin CMD.
I installed a faulty program that deleted my windows defender
Hello, same as this thread:
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.
75 answers
Sort by: Oldest
-
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: 0REAGENTC.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>
-
Ramesh 181.6K Reputation points Volunteer Moderator2024-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.
-
Anonymous
2024-12-24T16:29:21+00:00 when running set id=07 blue screen with error message and the pc restarted
-
Ramesh 181.6K Reputation points Volunteer Moderator2024-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".