-- Windows utilities 1. DISKPART : resize, format, turn partition active, change drive signature - unique id - select disk - select partition - select volume - uniqueid disk id=FFFFFFFF 2. BOOTREC : scan all windows installations, repair MBR records - bootrec /fixmbr - bootrec /fixboot - bootrec /scanos - bootrec /rebuildbcd 3. BCDBOOT : copy and recriate boot loader - bcdboot c:\windows - bcdboot c:\windows /l pt-br 4. BCDEDIT : repair boot configuration (windows in different volume, dual boot) - removes multiple entries - set timeout for default o.s. in dual boot environment - set for legacy menu -- Install Windows 11 from network share 1. Start network wpeinit 2. Map net use \\\ /user: net use r: \\192.168.2.1\public\tftpboot\windows_iso /user:username password net use r: \\192.168.2.1\public\tftpboot\windows_iso\w11_21h2 /user:username password - or - net use \\\ /user:\ net use \\\ /user:\ net use r: \\192.168.2.1\public\tftpboot /user:192.168.2.1\username password net use r: \\192.168.2.1\public\tftpboot\windows_iso /user:routername\username password 3. Run setup.exe -- Modify install.wim, winre.wim, boot.wim 1. DISM dism /mount-image /imagefile:"d:\wpe\boot.wim" /index:1 /mountdir:"d:\wpe\mount" dism /unmount-image /mountdir:"d:\wpe\mount" /commit --------------- -------------------- ----------------------- -------------------- -------- 20230519 - Dual-Boot Windows XP and Windows 11 fix Assuming: - Only one HDD/SSD present after copying Windows partitions - Windows XP on 1st partition primary - Existing BCD record on 1st partition (Windows XP) - Windows 11 on 2nd partition primary 1. Copy both Windows partitions (Windows XP 1st) 2. Command Prompt - Windows Recovery Environment (Windows 11, Windows 10 or Windows 7) 3. Confirm Windows XP in C: drive 4. Confirm Windows 11 in D: drive -- Common for WinXP and Win11: 5. DISKPART SELECT DISK 0 SELECT PART 1 ACTIVE DETAIL PART (Confirming Paritition C -Windows XP- is active) EXIT -- Windows XP Boot fix: 6. BOOTREC /FIXMBR 7. BOOTREC /FIXBOOT 8. BCDEDIT /SET {ntldr} device partition=c: -- Windows 11 Boot fix: 9. BOOTREC /REBUILDBCD 10. BCDBOOT D:\Windows 11. EXIT 12. Shutdown and turn on PC --------------- -------------------- ----------------------- -------------------- --------