Skip to content

Instantly share code, notes, and snippets.

@zardini123
Created May 30, 2020 05:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zardini123/940283b78ee83eccdf13fe44314fd09f to your computer and use it in GitHub Desktop.
Save zardini123/940283b78ee83eccdf13fe44314fd09f to your computer and use it in GitHub Desktop.
bootmgfw.efi rename script for after Windows updates
@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