Apply Windows Image using DISM Instead of Clean Install
Post on 20-Jun-2022
17 Views
Preview:
Transcript
12/28/2019 Apply Windows Image using DISM Instead of Clean Install - Page 3 - | Tutorials
https://www.tenforums.com/tutorials/84331-apply-windows-image-using-dism-instead-clean-install-3.html 1/6
Forum Windows 10 Forums Tutorials
Apply Windows Image using DISM Instead of Clean Install
User Name Password Log in
Remember Me?
Register
What's New? Tutorials News Join Us
FAQ Tutorial Index
Search..
Advanced Search
Belle Tire®Belle Tire
We Search Our Competitors' Prices Weekly!
Dearborn
WEBSITE DIRECTIONS
Page 3 of 3 1 2 3First
09 Jul 2019
Quote from Ten Forums video thread:Posts : 16,752Windows 10 ProThread Starter
Kari
#20
AuraticTrance said:
Is it possible to change the drive ID from C: to any other letter after Windows boots ? for the casewhen applying the image to a VHD ?
Kari said:
New video: Dual Boot - The Easy Way
The easiest possible method to dual boot. No partitioning, no virtualization required. DeployWindows 10 on a virtual hard disk VHD or VHDX �le, add it to boot menu. When done, when youno longer want to dual boot, just delete the VHD �le.
Windows Dual Boot - The Easy WayWindows Dual Boot - The Easy Way
Forum
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy. Read more I agreeI agree
12/28/2019 Apply Windows Image using DISM Instead of Clean Install - Page 3 - | Tutorials
https://www.tenforums.com/tutorials/84331-apply-windows-image-using-dism-instead-clean-install-3.html 2/6
The DISKPART script and deployment batch from video:
DISKPART scripts are normal text �les with extension .txt. To run a DISKPART script, enterfollowing command:
diskpart /s DRIVE:\FOLDER\SCRIPT.TXT
Here's the script used in video:
Code:
Save script as VHDCon�g.txt
Above script creates a dynamically expanding 50 GB (51,200 MB) VHDX �le (you can use .vhd or.vhdx) named W10PRO.vhdx in root of drive F:, labels it Windows and assigns it a temporarydrive letter W:. Edit script to meet your needs, be sure the drive you create VHD has double thefree storage than the size of VHD; if you will create a 100 GB VHD �le to be used in dual boot, thedrive where it will be created needs 200 GB free.
Also, be sure to assign an unused drive letter! I always use W: which I have reserved for thispurpose, never assigning it to anything else. In any case the drive letter will only be needed fordeployment, it will be freed when VHD will be unmounted.
The deployment batch is really simple, too. It just runs DISKPART script to set up VHD, deploysWindows on it with DISM, adds it to host boot menu and �nally changes the boot menu entry tosomething more descriptive:
Code:
Save batch �le as VHDBoot.bat
Again, edit the batch to meet your needs. Be sure path to DISKPART script is correct, and thatpath to install.wim (or in case of MCT ISO install.esd) is correct in DISM command. Select correctindex value. Check that BCDBOOT will add Windows to boot menu from correct disk, the driveletter here must be the same DISKPART script assigned to VHD.
Windows 10 ISO edition index values
Table 1: O�cial Windows 10 ISO images
Edition index values for ISO images downloaded from Download Windows 10 Disc Image (ISOFile)
ESD = ISO image created with Windows Media Creation Tool (install.esd �le instead ofinstall.wim)WIM = WIM based ISO image (requires browser user agent change)
create vdisk file=F:\W10PRO.vhdx maximum=51200 type=expandable attach vdisk create part primary format quick label="Windows" assign letter=W exit
start /wait diskpart /s E:\Users\Kari\Scripts\VHDConf.txt start /wait dism /apply-image /imagefile:I:\sources\install.wim /index:8 /applydir:W:\ start /wait bcdboot W:\Windows start /wait bcdedit /set {default} description "W10 PRO EN-GB (VHD)" cls @echo off echo. echo Windows deployed to VHD file echo and added to host boot menu. echo. pause exit
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy. Read more I agreeI agree
12/28/2019 Apply Windows Image using DISM Instead of Clean Install - Page 3 - | Tutorials
https://www.tenforums.com/tutorials/84331-apply-windows-image-using-dism-instead-clean-install-3.html 3/6
Notice that values in WIM column also apply for o�cial Insider ISO images downloaded fromDownload Windows 10 Insider Preview Advanced
Edition ESD WIM
Home 1 1
Home N 2 2
Home SL 3 3
Pro 6 6
Pro N 7 7
Pro Education - 8
Pro Education N - 9
Pro for Workstation - 10
Pro for Workstation N - 11
Education 4 4
Education N 5 5
Table 2: Visual Studio (former MSDN) subscriber ISO images
Edition index values for ISO images downloaded from Sign in to your accountVSB= Business editions ISO imageVSC= Consumer editions ISO image
Edition VSB VSC
Home - 1
Home N - 2
Home SL - 3
Pro 5 6
Pro N 6 7
Pro Education 7 8
Pro Education N 8 9
Pro for Workstation 9 10
Pro for Workstation N 10 11
Education 1 4
Education N 2 5
Enterprise 3 -This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy. Read more I agreeI agree
12/28/2019 Apply Windows Image using DISM Instead of Clean Install - Page 3 - | Tutorials
https://www.tenforums.com/tutorials/84331-apply-windows-image-using-dism-instead-clean-install-3.html 4/6
Enterprise N 4 -
Enterprise for Virtual Desktops 11 -
All single edition ISO images have index value 1 for edition in question regardless of edition, forinstance whatever edition you are running, its index = 1 if you made the ISO by yourself withUUPtoISO.
Kari
My Computer Quote
09 Jul 2019
When i boot into a VHD, the drive letter of the VHD which was previously assigned X: (say) during creation,changes to C: and the default OS drive which is C: originally changes to D: and becomes in-accessible andshows the pop up message to format before use, also a CHKDSK is automatically performed on D:(originally C:) when windows is loading from VHD (at the rolling dots screen). Don't know why this ishappening ? Although this happened only during the �rst time when booting into the VHD.
When i boot back to my default OS on HDD, everything's �ne.
Posts : 29Windows 10 Pro
1903
AuraticTrance
#21
My Computer Quote
09 Jul 2019
The Booted OS will Always be CThe letter assignment is for Mounting the VHD in the OS
Posts : 2,679Windows 3.1 to
Windows 10
Kyhi
#22
My Computer Quote
09 Jul 2019
Posts : 16,752Windows 10 ProThread Starter
Kari
#23
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy. Read more I agreeI agree
12/28/2019 Apply Windows Image using DISM Instead of Clean Install - Page 3 - | Tutorials
https://www.tenforums.com/tutorials/84331-apply-windows-image-using-dism-instead-clean-install-3.html 5/6
Tutorial Categories
Exactly.
Whatever Window OS you select from boot menu, it's always going to b drive C: and other operatingsystems, their drive letters, changed accordingly.
Kari
Kyhi said:
The Booted OS will Always be CThe letter assignment is for Mounting the VHD in the OS
My Computer Quote
Delivered:70% forecastingimprovement
Crash-resistant scalabilityfrom Google Cloud + Rackspace
LEARN HOW ►
10 Jul 2019
WinNTSetup has an option called "Mount installation drive as: ", i tried applying a Windows 7 image to aVHD and booted into it and the drive letter of the OS drive was successfully changed but C: was still in-accessible.
Posts : 29Windows 10 Pro
1903
AuraticTrance
#24
My Computer Quote
Page 3 of 3 1 2 3First
Related Threads
Your Local Tire ShopBelle Tire
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy. Read more I agreeI agree
12/28/2019 Apply Windows Image using DISM Instead of Clean Install - Page 3 - | Tutorials
https://www.tenforums.com/tutorials/84331-apply-windows-image-using-dism-instead-clean-install-3.html 6/6
Our Sites
Vista ForumsEight ForumsSeven Forums
Site Links
Contact UsPrivacy and CookiesTerms of service
About Us
Windows 10 Forums is an independent web site and has notbeen authorized, sponsored, or otherwise approved by MicrosoftCorporation. "Windows 10" and related materials are trademarksof Microsoft Corp.
© Designer Media Ltd All times are GMT -5. The time now is 04:59.
Find Us
Apply Windows 10 Enterprise image via USB in Installation and UpgradeI have taken an image using DISM and it is in the .wim format. I want to apply it to a tabletusing a usb stick, it has a UEFI Bios. in the past with windows 7 and I have been able to createa bootable usb drive by using Windows 7 USB DVD tool to...
Windows 8 desktop background image returned on Win 10 clean install? in CustomizationThis isn't a major problem, but I would just like to understand how it happened. Somebackground. This is a Windows 10 clean install on a new SSD drive. The original HDD is still inthe computer with a corrupt version of Windows 8 on it. My...
Using Dism to capture and apply windows 10 images to a partition in General SupportHi guys, so a few days ago my windows 10 crashed so I had to format and reinstall windows 7then upgrade to windows 10, a hard work to do. So I started to search about how to capturethe image of C: where the windows 10 is running and I found Dism....
Dism /Apply-Image and remove the entire content of the directory in General SupportHi I installed Windows ADK 10 v1511 on Windows 10 v1511 Enterprise 64 bit. I typed thefollowing commands: Dism /Apply-Image /ImageFile:"<wim_File_Path>\install.wim" /Index:1/ApplyDir:"<Apply_Directory_Path>" /Verify /CheckIntegrity...
creating usb pen for dism apply-image in Installation and UpgradeI have managed to create a USB pen drive to apply WIM images using the DISM Apply-imagecommand in 64bit so I know it can be done but any ideas how to create a pen to apply 32bitWIM images
Related Threads
© 2019 Best Buy
This website uses cookies to improve user experience. By using our website you consent to all cookies in accordance with our Cookie Policy. Read more I agreeI agree
top related