进入配置文件编辑

sudo vim /boot/grub/grub.cfg

### BEGIN /etc/grub.d/30_os-prober ###下面插入下面的内容

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-A87B-932D' {
        insmod part_gpt
        insmod fat
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root  A87B-932D
        else
          search --no-floppy --fs-uuid --set=root  A87B-932D
        fi
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

其中,需要修改为自己的分区UUID,获取方法如下

sudo blkid  | grep EFI | awk '{print $4}'

┌──(liuyi㉿kali)-[~]
└─$ sudo blkid  | grep EFI | awk '{print $4}'
UUID="A87B-932D"