Created
May 30, 2020 05:13
-
-
Save zardini123/940283b78ee83eccdf13fe44314fd09f to your computer and use it in GitHub Desktop.
bootmgfw.efi rename script for after Windows updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
ECHO bootmgfw rename script | |
E: | |
cd EFI\Microsoft\Boot | |
if exist bootmgfw.efi ( | |
if exist bootmgfw-orig.efi ( | |
if exist bootmgfw-orig-backup.txt ( | |
del bootmgfw-orig-backup.txt | |
) | |
ren bootmgfw-orig.efi bootmgfw-orig-backup.txt | |
) | |
ren bootmgfw.efi bootmgfw-orig.efi | |
) else ( | |
ECHO New boot file doesnt exists! | |
) | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment