From 74e6a54e2c3a1e4084b2757b77dc244e2eb02dd0 Mon Sep 17 00:00:00 2001 From: xerox Date: Tue, 6 Oct 2020 21:16:27 +0000 Subject: [PATCH] Update launch.bat --- launch.bat | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/launch.bat b/launch.bat index b1e4795..df3a31e 100644 --- a/launch.bat +++ b/launch.bat @@ -1,14 +1,24 @@ @echo off net session >nul 2>&1 if %errorLevel% == 0 ( + :: mount the efi partition to X: drive... mountvol X: /S + + :: bootmgfw is a system file so we are going to strip those attributes away... attrib -s -h X:\EFI\Microsoft\Boot\bootmgfw.efi + + :: backup bootmgfw.efi (this is needed for voyager to work since voyager restores bootmgfw.efi) move X:\EFI\Microsoft\Boot\bootmgfw.efi X:\EFI\Microsoft\Boot\bootmgfw.efi.backup + + :: copy payload and bootmgfw.efi to EFI partition... xcopy %~dp0bootmgfw.efi X:\EFI\Microsoft\Boot\ xcopy %~dp0payload.dll X:\EFI\Microsoft\Boot\ echo press enter to reboot... pause + + :: enable hyper-v and reboot now... + BCDEDIT /Set {current} hypervisorlaunchtype auto shutdown /r /t 0 ) else ( echo Failure: Please run as admin.