Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rem == (Re-)Populate required EFI boot files in SYSTEM partition
- rem ==========================================================
- rem This script assumes the following is TRUE:
- rem - Windows is already installed on DISK 0
- rem - SYSTEM partition assigned letter S: and is PART 0
- rem - WINDOWS partition assigned letter C:
- rem ==========================================================
- rem == 1. Clear existing SYSTEM partition ======
- format S: /q
- rem == 2. Add required startup files to new SYSTEM partition ======
- bcdboot C:\windows /s S: /f UEFI
- rem == 3. Remove drive letter from SYSTEM partition ======
- diskpart
- sel disk 0
- sel part 0
- remove letter=S
- rem == 4. Find existing Windows install and build a new BCD
- bootrec /rebuildbcd
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement