Jump to content











Photo
* * * * * 1 votes

Install Windows 10 from USB after booting with WIM or VHDX

usb ssd windows 10 wim vhdx win10pe winntsetup bootice portable

Best Answer wimb , 02 August 2019 - 12:21 PM

Install Windows 10 Unattended using WinNTSetup
 
Using an unattend.xml file saves time and you don't need to answer all kind of questions during Install of Windows 10.
 
In WinNTSetup you can select an unattend.xml file that you can edit using right-click on the checkbox.
 
The unattend.xml files provided in the Attachment are modified versions as originally given by alacran
 
- Replace ASUS-PC with your ComputerName
- Replace TimeZone value with your TimeZone
- Replace InputLocale 0409:00020409 of VS International Keyboard with your Language and Keyboard code
- Replace 4x en-US with your Language code
 
=========================================================================
A. Unattended with Local Account - use unattend_local_account.xml
- Replace Vx64W in Username and Name with your UserName for Local Account
- Password = admin
  This method is completely unattended. After Install of Windows 10 you can switch to MS Account.
  After Install you can switch Settings > Privacy > Diagnostic Feedback to Basic for reduced Telemetry
 
  After auto Install of all drivers then use Settings >  Update > Windows Update to Search and Install Updates
  This method is working best for Install in VHD to be used for booting from USB Portable SSD on various equipment
 
=========================================================================
B. Unattended with Microsoft Account - use unattend_ms_account.xml
 
  During Install give MS Account with e-mailadres and password
  You need to answer 4 questions: PIN code for Logon, Synchronization, Phone, OneDrive
  After Install you can switch Settings > Privacy > Diagnostic Feedback to Basic for reduced Telemetry
 
  After auto Install of all drivers then use Settings >  Update > Windows Update to Search and Install Updates
  This method is working best in my experience for Install on your own PC - VHD WIMBOOT is preferred by me
 
=========================================================================
 
How does it work ?
In WinNTSetup you select an unattend.xml file e.g. unattend_local_account.xml or unattend_ms_account.xml
WinNTSetup will copy that file as unattend.xml in folder Windows\Panther on the installation drive.
During Install of Windows 10 then file Windows\Panther\unattend.xml  is used to give answers ....
 
More Info: Windows Unattended Setup Reference - Download PDF
 
Telemetry is minimized by using the CEIPEnabled = 0 and ProtectYourPC = 3 settiings.
Telemetry is maximized by using the CEIPEnabled = 1 and ProtectYourPC = 1 settiings.
 
 
== 
Go to the full post


  • Please log in to reply
11 replies to this topic

#1 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 08 November 2018 - 04:33 PM

Install Windows 10 from USB after booting with WIM or VHDX
 
MediaCreationTool makes USB stick 32 GB for Installing Win10x64 and Win10x86
- Add WIM file for USB boot from RAMDISK - filename = w10x64A.wim
- Add VHDX file to Portable SSD 250 GB for booting with FILEDISK filename = W10x64.vhdx
- Add ISO file used by WinNTSetup for Installing Win10x64 in VHDX or hard disk
Update BCD files in folders boot and efi using reserved BCD copies to add WIM and VHDX to USB Boot Menu
- Or BOOTICE x64 is used to add New WIM or VHD entry to BCD files in boot and efi folders on USB
- Keep BCD files in boot and efi folders as copy for future USB Boot Repair
 
Download  and Add Explorer++ and WinNTSetup and BOOTICE
 
===============================================================================
 
A. Microsoft Method - also needed for New hard disk - via option New the EFI Partition is created
 
1. Download MediaCreationTool
2. Make USB-stick 32 GB for Installing Win10x64 and Win10x86 (choose option both)
3. Boot from USB after beep via F8 menu and choose from menu: Windows 10 Setup (64 bits) to Install
 
Shift F10 gives Command Window for Repair with  bcdedit and bcdboot
Cmd Window run notepad - File Open - All files - R-mouse Run as admin on file WinNTSetup x64 - allows method B.
In WinNTSetup select in USB folder x64\sources file install.wim or install.esd or install.swm and use Setup
 
Update of Windows 10 with preservation of Programs and User Data
- After starting up Windows 10 then setup.exe from USB will allow Update
 

===============================================================================

 
B. WinNTSetup Method - Boot from USB with WIM or VHDX file and use WinNTSetup and ISO file
 
This method gives more control to existing hard disk and you can simply install Windows 10 in VHDX
 
1. Download MediaCreationTool and Create Win10x64.iso for Installing Win10x64
    First create the ISO file on an internal hard disk and then copy the ISO file to USB
2. Boot from USB after beep via F8 menu and with WIM from RAMDISK or with VHDX as FILEDISK
3. Use WinNTSetup x64 and ISO file for Install of Windows 10 x64 in VHDX or hard disk
 
More Info : Forum and WinNTSetup and Boot from USB and VHDX and Native Boot
 

More Info: DiskPart and UEFI/GPT-based hard drive partitions and BIOS/MBR-based hard drive partitions

 

More Info: WinCmd and bcdedit and bcdboot

More Info: bootsect and DiskPart and DISM

 
===============================================================================
 
Attached File  Win10_Inst_Eng.pdf   1.78MB   79 downloads

 

 
 

How to use WinNTSetup with Microsoft USB Boot Media when Win10PE file w10x64A.wim is not available ....

 

Attached File  Media2_VHDX.png   295.6KB   2 downloads == Attached File  Media3_VHDX.png   378.9KB   0 downloads == Attached File  Media4_ShowHidden.png   365.73KB   1 downloads

 

ShowHidden.reg can be used with double click in Explorer++ after booting with Microsoft USB Media

Windows Registry Editor Version 5.00

; Show all hidden files
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"SuperHidden"=dword:00000001
"WebViewBarricade"=dword:00000001
"Hidden"=dword:00000001
"ShowSuperHidden"=dword:00000001

; Show all file extentions
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"HideFileExt"=dword:00000000

Attached File  ShowHidden_reg.txt   824bytes   8 downloads

 

:cheers:


  • devdevadev likes this

#2 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 16 November 2018 - 11:11 AM

DiskPart script to make UEFI/GPT-based hard drive partitions for Install of Windows 10
rem ==
rem == CreaPartGPT-SSD-Disk0.txt ==
rem ==
rem == These commands are used in Win10PE with DiskPart to create 3 GPT partitions
rem == for Install of Win10 on a UEFI/GPT-based computer SSD harddisk
rem == In DiskPart use list disk to find disk number and adjust partition sizes and label as necessary.
rem ==
list disk
select disk 0
clean
convert gpt
rem == 1. EFI Boot partition FAT32 300 MB ==========================
create partition efi size=300
format quick fs=fat32 label="0_EFI"
assign
rem == 2. Microsoft Reserved (MSR) partition =======
create partition msr size=16
rem == 3. Windows 10 partition NTFS ========================
create partition primary
format quick fs=ntfs label="0_W10"
assign
list volume
exit
rem ==
rem == Info https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions
rem == Info https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-biosmbr-based-hard-drive-partitions
rem ==
rem == In admin command window use: DiskPart /s G:\DiskPart\CreaPartGPT-SSD-Disk0.txt
rem ==
 
DiskPart script to make UEFI/MBR-based portable SSD or USB-harddisk for UEFI / BIOS booting with WIM or VHDX
rem ==
rem == CreaPartMBR-USB-Disk5.txt ==
rem ==
rem == These commands are used with DiskPart to create two partitions
rem == for a UEFI/MBR-based portable SSD or USB-harddisk
rem == In DiskPart use list disk to find disk number and adjust partition sizes and label as necessary
rem ==
list disk
select disk 5
clean
rem == 1. Boot partition FAT32 20 GB - WinPE 8/10 x64 WIM files UEFI /BIOS booting ===========
create partition primary size=20480
format quick fs=fat32 label="U-BOOT"
assign
active
rem == 2. Data partition NTFS - UEFI 8/10 x64 VHD files - BIOS XP/7/8/10 VHD ==================
rem == partition contains also  7/8/10 ISO files for Install with WinNTSetup ==================
create partition primary
format quick fs=ntfs label="U-DATA"
assign
list volume
exit
rem ==
rem == Info https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-uefigpt-based-hard-drive-partitions
rem == Info https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/configure-biosmbr-based-hard-drive-partitions
rem ==
rem == In admin command window use: DiskPart /s G:\DiskPart\CreaPartMBR-USB-Disk5.txt
rem ==

More Info: WinCmd and DiskPart and UEFI/GPT-based hard drive partitions and BIOS/MBR-based hard drive partitions

 

Attached File  CreaPartGPT-SSD-Disk0.txt   1.09KB   9 downloads and Attached File  CreaPartMBR-USB-Disk5.txt   1.14KB   10 downloads

 

:cheers:



#3 Rootman

Rootman

    Frequent Member

  • Advanced user
  • 304 posts
  • Location:USA

Posted 18 November 2018 - 01:19 AM

I use Easy2Boot on various USB drives, thumb and HDDs.  I created a .imgPTN from it using MPI Toolpack.  I use the same drives to install Windows 7 and WIndows 10, as well as boot to a variety of live ISO files, from Linux distros to Macrium Rescue media to several different Win PE ISO files.  

 

I boot to it in legacy mode, select the Windows install .imgPTN file I want, reboot to EFI and then install Windows.  It works great with no editing or changing of any files or boot menu files. 


  • devdevadev likes this

#4 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 18 November 2018 - 08:04 AM

VHDX booting from portable SSD has the full power of Windows 10 x64.

That means it has the drivers for all hardware and it allows to use all Windows programs.

 

The Boot Menu for the VHDX is made only once with BOOTICE and reserved copies of BCD files can be used on other devices.

Updating the portable SSD for Install of new versions of Windows requires only to add new Windows setup ISO file.

There is no 4GB size limit for the ISO and you don't need to Integrate the ISO with any Toolpack and there is no need to Switch partitions.

 

The present approach is an easy to make all in one transparent solution for booting fast on any hardware in BIOS or UEFI secure mode

and allows then to Install any version of Windows by using WinNTSetup and any Windows setup ISO file.

 

There is no need to boot first in Legacy mode. With VHDX you can boot straight into UEFI Secure Boot mode.



#5 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 03 December 2018 - 09:31 AM

Make Portable SSD booting from USB with AIO Boot Linux
 
Booting with Windows BootManager Menu in BIOS mode and in UEFI Secure mode
 
Description is given in

 

The content of AIOBoot-v0.9.8.17.7z is copied to USB FAT32 Boot drive.

Do not auto install new Bootloader, but keep Windows BootManager as Bootloader.

 

Linux Mint files bootx64.efi and grubx64.efi are used in EFI\BOOT folder for support of UEFI Secure booting.


grubx64.efi expects for UEFI booting grub.cfg in folder boot\grub

The grub folder of AIO is copied  to boot folder made by Microsoft MediaCreationTool.
 

In file Main.cfg of folder boot\grub make new boot entry for UEFI booting of Windows BootManager

menuentry "[b] Windows 10 x64 EFI USB BootManager" --hotkey=b {
  chainloader /efi/microsoft/boot/bootmgfw.efi
} 

BOOTICE is used to add Grub2 entry to boot\bcd Windows BootManager

for BIOS booting support with Boot file \AIO\grub\grub2win

 

AIOCreator.exe is used to Integrate Linux ISO files.

 

In case UEFI Grub2 is not available as Boot option in your F8 Boot Menu for your Portable SSD 
then you need to use BOOTICE to Add UEFI entry.
Unneeded for USB-Stick, but UEFI Grub2 boot entry is easily lost in case of Portable SSD.
Select as UEFI Boot entry on USB the Linux Mint Grub2 file \EFI\Boot\BOOTx64.EFI
 
Attached File  Win10_Inst_Eng.pdf   1.78MB   79 downloads

 

Linux Mint - Knoppix Live - Ubuntu - Porteus - All booting in UEFI Secure mode using Grub2 EFI Manager of Linux Mint.

 

YouTube Video: USB AIO Linux

 

W10_AIO-7.png == W10_AIO-8.png == W10_AIO-9.png == W10_AIO-5.png == W10_AIO-6.png

 

:cheers:



#6 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 14 December 2018 - 08:15 AM

How to make USB Drive booting with various Linux versions in BIOS and in UEFI Secure mode
 
1. Make FAT32 USB Drive (Max = 32 GB) booting with Microsoft Boot Manager Menu
    Microsoft Media Creation Tool (Architecture both 32 and 64 bits) Or Other Format Tool can be used
2. Download and Unpack AIOBoot-v0.9.8.17.7z - Don't use Extractor and Don't Overwrite existing Microsoft files
    Unpack and Copy content of folder AIOBoot-v0.9.8.17 to FAT32 USB Drive, but keep existing Microsoft Boot files
3. Use UEFI_MULTI to Add Grub2 EFI Manager of Linux Mint, which fixes AIO Boot for booting in BIOS and UEFI Secure mode
4. On USB run  AIOCreator.exe - Select Integration Linux OS and your Linux ISO linuxmint-19-cinnamon-64bit-v2.iso - preferred
5. Boot from USB after beep via F8 menu in UEFI or in BIOS mode with Grub2 menu and Select your Linux OS
 
- AIO Boot is supported in BIOS mode by adding Grub4dos and Grub2 entry to Boot Manager Menu
- AIO Boot is supported in UEFI Secure mode by booting with Grub2 EFI Manager of Linux Mint
- Update Grub4dos to version grub4dos-0.4.6a-2018-09-19 for booting in BIOS mode
 
:cheers:
 
UEFI_MULTI-86 has been improved so that the extraction of Linux ISO by AIO Boot is not needed anymore.
We can simply add various Linux ISO files to folder images on USB.
 
- Add VHDX to Boot Manager Menu for BIOS and UEFI Secure booting with Windows 10 x64 VHDX as FILEDISK
- Add WIM to Boot Manager Menu for BIOS and UEFI Secure booting with Windows 10 x64 WIM from RAMDISK
- Add Grub2 of Linux Mint to boot various Linux ISO files in BIOS and UEFI Secure mode
- Linux ISO files are supported when copied to folder images on USB
- Grub4dos entries are present in menu.lst for booting in BIOS mode various Linux ISO files
- Grub2 entries are present in grub.cfg for booting in UEFI Secure mode various Linux ISO files
=
Download : UEFI_MULTI  -  password for UEFI_MULTI is bootwimb88
 
How to make USB Drive booting with various Linux ISO versions in BIOS and in UEFI Secure mode
 
1. Make FAT32 USB Drive (Max = 32 GB) booting with Microsoft Boot Manager Menu
    Microsoft Media Creation Tool (Architecture both 32 and 64 bits) Or Other Format Tool can be used
2. Use UEFI_MULTI to Add Grub4dos for booting in BIOS mode and Grub2 EFI Manager of Linux Mint for booting in UEFI Secure mode
3. In USB folder images Add your Linux ISO file - preferred is linuxmint-19-cinnamon-64bit-v2.iso
4. Boot from USB after beep via F8 menu in BIOS mode with  Grub4dos menu Or in UEFI Secure mode with Grub2 menu and Select your Linux OS
 
In case UEFI Grub2 is not available as Boot option in your F8 Boot Menu for your Portable SSD 
then you need to use BOOTICE to Add UEFI entry.
Unneeded for USB-Stick, but UEFI Grub2 boot entry is easily lost in case of Portable SSD.
Select as UEFI Boot entry on USB the Linux Mint Grub2 file \EFI\Boot\BOOTx64.EFI
 
Attached File  Win10_Inst_Eng.pdf   1.78MB   79 downloads

 

More Info - Linux Mint - Knoppix Live - Ubuntu - Porteus - All booting in UEFI Secure mode using Grub2 EFI Manager of Linux Mint
 
More Info :   - UEFI_MULTI
 
 
:cheers:

 



#7 Camiel

Camiel

    Newbie

  • Members
  • 28 posts

Posted 31 July 2019 - 07:00 AM

Any chance this working with win7 ?



#8 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 31 July 2019 - 10:21 AM

Any chance this working with win7 ?

 

Yes, everything is about the same but use VHD instead of VHDX

 

For Install of Windows 7 use WinNTSetup to Create Fixed VHD 25GB and use ISO downloaded from TechBench



#9 Camiel

Camiel

    Newbie

  • Members
  • 28 posts

Posted 31 July 2019 - 11:08 AM

I am very sorry. Wrong thread.

I meant to ask for this http://reboot.pro/to...-for-os-in-vhd/

Is this working for win7 ?



#10 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 31 July 2019 - 12:20 PM

I am very sorry. Wrong thread.

I meant to ask for this http://reboot.pro/to...-for-os-in-vhd/

Is this working for win7 ?

 

Windows 7 does not have the wof.sys driver present in Windows 8/10 and needed for WIMBOOT.

In case of Windows 7 we can make use of the wofadk.sys driver present in WinNTSetup3\Tools\x64\DISM folder.

For Install of Windows 7 in VHD you must use WinNTSetup in WIMBOOT Mode so that wofadk.sys driver is installed.

 

Also bootmgr of Windows 7 cannot be used as described  here

bootmgr in boot folder on Boot Drive must be replaced by Windows 10 version.

 

VHD WIMBOOT working for Windows 7 see here

 

Yes it does not have the wof.sys driver but WinNTSetup installs on Win7 the Wofadk.sys driver (from 10 ADK) during Wimboot or Compress mode installs (the driver is located on WinNTSetup\Tools\x64 or x86\DISM folder).

 

25 GB VHD FILEDISK and 4 GB VHD RAMDISK

 

W7x64NL_WimBoot_2019-04-26_081652.png == W7x64-RAM-2019-04-26_134049.png


#11 wimb

wimb

    Platinum Member

  • Developer
  • 2679 posts
  • Interests:Boot and Install from USB
  •  
    Netherlands

Posted 02 August 2019 - 12:21 PM   Best Answer

Install Windows 10 Unattended using WinNTSetup
 
Using an unattend.xml file saves time and you don't need to answer all kind of questions during Install of Windows 10.
 
In WinNTSetup you can select an unattend.xml file that you can edit using right-click on the checkbox.
 
The unattend.xml files provided in the Attachment are modified versions as originally given by alacran
 
- Replace ASUS-PC with your ComputerName
- Replace TimeZone value with your TimeZone
- Replace InputLocale 0409:00020409 of VS International Keyboard with your Language and Keyboard code
- Replace 4x en-US with your Language code
 
=========================================================================
A. Unattended with Local Account - use unattend_local_account.xml
- Replace Vx64W in Username and Name with your UserName for Local Account
- Password = admin
  This method is completely unattended. After Install of Windows 10 you can switch to MS Account.
  After Install you can switch Settings > Privacy > Diagnostic Feedback to Basic for reduced Telemetry
 
  After auto Install of all drivers then use Settings >  Update > Windows Update to Search and Install Updates
  This method is working best for Install in VHD to be used for booting from USB Portable SSD on various equipment
 
=========================================================================
B. Unattended with Microsoft Account - use unattend_ms_account.xml
 
  During Install give MS Account with e-mailadres and password
  You need to answer 4 questions: PIN code for Logon, Synchronization, Phone, OneDrive
  After Install you can switch Settings > Privacy > Diagnostic Feedback to Basic for reduced Telemetry
 
  After auto Install of all drivers then use Settings >  Update > Windows Update to Search and Install Updates
  This method is working best in my experience for Install on your own PC - VHD WIMBOOT is preferred by me
 
=========================================================================
 
How does it work ?
In WinNTSetup you select an unattend.xml file e.g. unattend_local_account.xml or unattend_ms_account.xml
WinNTSetup will copy that file as unattend.xml in folder Windows\Panther on the installation drive.
During Install of Windows 10 then file Windows\Panther\unattend.xml  is used to give answers ....
 
More Info: Windows Unattended Setup Reference - Download PDF
 
Telemetry is minimized by using the CEIPEnabled = 0 and ProtectYourPC = 3 settiings.
Telemetry is maximized by using the CEIPEnabled = 1 and ProtectYourPC = 1 settiings.
 
Attached File  Unattended_Eng.zip   3.74KB   3 downloads
 
Attached File  Unattended-2019-08-02_115327.png   357.02KB   0 downloads == Attached File  Unattended-2019-08-05_081740.png   407.33KB   2 downloads


#12 steve6375

steve6375

    Platinum Member

  • Developer
  • 7107 posts
  • Location:UK
  • Interests:computers, programming (masm,vb6,C,vbs), photography,TV,films,guitars, www.easy2boot.com
  •  
    United Kingdom

Posted 02 August 2019 - 12:39 PM

FYI

There is a WAFG website where you can easily make your own XML files using the provided forms.

I also wrote XMLtoE2B.exe which converts/modifies a WAFG-generated XML file into a more automated form for E2B.

See here for link and details.





Also tagged with one or more of these keywords: usb, ssd, windows 10, wim, vhdx, win10pe, winntsetup, bootice, portable

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users