Skip to content

Instantly share code, notes, and snippets.

@dcai
Created August 21, 2019 04:36
Show Gist options
  • Save dcai/b8f557a0a6b52c5919462ccf0303f076 to your computer and use it in GitHub Desktop.
Save dcai/b8f557a0a6b52c5919462ccf0303f076 to your computer and use it in GitHub Desktop.
windows enable VT-x
SET UUID={0cb3b571-2f2e-4343-a879-d86a476d7215}
mountvol X: /s
bcdedit /delete %UUID%
copy %WINDIR%\System32\SecConfig.efi X:\EFI\Microsoft\Boot\SecConfig.efi /Y
bcdedit /create %UUID% /d "DebugTool" /application osloader
bcdedit /set %UUID% path "\EFI\Microsoft\Boot\SecConfig.efi"
bcdedit /set {bootmgr} bootsequence %UUID%
bcdedit /set %UUID% loadoptions DISABLE-LSA-ISO,DISABLE-VBS
bcdedit /set %UUID% device partition=X:
mountvol X: /d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment