see
- https://windowsreport.com/kill-antimalware-service-executable-windows-10/
- https://thegeekpage.com/fix-corrupted-registry-in-windows-10-solved/
Things to do first:
- reboot
- disk cleanup
- windows updates
If the computer does not boot , maybe you need to recreate the boot manager :
bcdboot command
EFI partition MUST BE FAT32 formatted and is between 100MB and 500MB
If needed use diskpart
- diskpart commands
- list disk
- select disk x (replace x by a number from the output of the previous command)
- list partition
- list volume (here you can see the filesystem type e.g;. FAT32 or NTFS ...)
- select volume x (replace x by a number from the output of the previous command)
- assign letter=V:
- help format
- format V: FS=FAT32 LABEL=EFIBOOT OVERRIDE
- if you want to recreate the boot manager :
exit
bcdboot C:\windows /s V: /f UEFI
- bcdedit : managing Boot Configuration Data (BCD)
Info from Microsoft:
BCD files provide a store that is used to describe boot applications and boot application settings. BCDEdit can be used for a variety of purposes, including creating new stores, modifying existing stores, adding boot menu options, and so on - bcdedit /enum active
Open a command prompt with admin privileges (approve UAC if demanded)
start diskpart -> diskpart
select your disk with efi partions -> sel disk 1 (if disk 1 is the correct disk)
list your available partitions -> list part
if partition 2 that is the efi partition -> sel part 2
detail part
Partition 2
Type : c12a7328-f81f-11d2-ba4b-00a0c93ec93b <<<<<< this means it is an EFI BOOT partition
Hidden : Yes
Required: No
Attrib : 0X8000000000000000
Offset in Bytes: 524288000
Now when the Required: property is set to No, you know that is the EFI partition you can delete. The other EFI partition will have the Required: property set to Yes. Do not delete that partition.
more info about the Required property, scroll to: gpt attributes on this page.
Edit:
to change the windows boot device (efi partition) use the following command:
bcdedit /set {bootmgr} device partition=a:
*where a: is the assigned drive letter for your new efi partition
Thanks to @mbrownnyc for looking up this information bcdedit Device Setting
The above useful info is copied from another website, hope the author doesn't mind ;-)
- Create boot manager
This useful info below is copied from another website, hope the author doesn't mind ;-)
bcdboot :Tool to use is bcdboot.
First you create bootable partition, format it and then use bcdboot command to create bootloader files.
Windows 10 Installation Media:
Insert the Media (DVD/USB) in your PC and restart.
Boot from the media.
Select Repair Your Computer.
Select Troubleshoot.
Choose Command Prompt from the menu:
Type in the command:
Diskpart
Type in the command:
List disk (Note which disk is your Boot drive number mine is 0)
Type in the command:
Sel disk 0
Type in the command:
List vol (Note which volume is the EFI partition mine is 4)
Type in the command:
Sel vol 4
Type in the command:
assign letter=V:
Type in the command:
Exit
Type in the command:
V:
After you have assigned a drive letter Using Diskpart You can format the EFI partition:
Example: if you assigned a letter V to the partition the command would be:
format V: /FS:FAT32
bcdboot C:\windows /s V: /f UEFI
Other useful commands: (use them at your own risk)
- Remove hiberfil.sys
Start command prompt as administrator
powercfg -h off - Remove pagefile.sys on Windows 10
sysdm.cpl
advanced > performance > settings - Disk scan:
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth