{"id":546,"date":"2019-07-15T14:57:47","date_gmt":"2019-07-15T19:57:47","guid":{"rendered":"http:\/\/itblog.ldlnet.net\/?p=546"},"modified":"2019-07-15T14:57:47","modified_gmt":"2019-07-15T19:57:47","slug":"create-a-custom-windows-10-image-for-distribution-using-and-iso-image","status":"publish","type":"post","link":"https:\/\/itblog.ldlnet.net\/index.php\/2019\/07\/15\/create-a-custom-windows-10-image-for-distribution-using-and-iso-image\/","title":{"rendered":"Create a custom Windows 10 image for distribution using and ISO image."},"content":{"rendered":"\n<p>I&#8217;ve been currently assisting with onboarding at my new Full Time Contractor position at Microsoft. All of the new FTCs received laptops and needed to have the newest build of Windows 10 installed. The issue was that all of our laptops came with Windows 10 Professional and we needed to upgrade them to Enterprise edition. <\/p>\n\n\n\n<p>After finding a working key for Enterprise Edition, we were still having issues joining the MS Azure domain so that we could get all of the needed software properly to being onboarding with Microsoft. <\/p>\n\n\n\n<p>So, after going through a couple of re-images of my laptop with some failures attached to that, I finally was able to get the process down so that time would not be waisted for the oncoming new hires once they received their laptop. The issue was getting the correct build of Windows 10 and getting the proper apps installed in an efficient manner. Since the onboarding process was quickly moving, I needed to find a way to help streamline the process so the others would not have to go through all the mess I went through to get everything setup.<\/p>\n\n\n\n<p>So, I began looking for a way to create a customized ISO for the build that would already have apps, settings, and customizations installed. I found this great <strong><a aria-label=\"article (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.tenforums.com\/tutorials\/72031-create-windows-10-iso-image-existing-installation.html\" target=\"_blank\">article<\/a><\/strong> that details the process. I wanted to re-post this article here showing the steps I took to create the customized image by creating a VM in Hyper-V and then converting that completed image to an ISO that could be downloaded and utilized for the installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Creating a customized ISO image with pre-installed software and no user accounts<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>A generalized ISO image without any pre-set user accounts, with pre-installed software, desktop, File Explorer and Start customizations will be created.<\/li><li>All customizations and personalization will automatically be applied to all new user accounts<\/li><li>Clean install will perform a normal OOBE, asking for regional settings, initial user and so on<\/li><li>This ISO will be generalized meaning it is hardware independent and can be used to install Windows on any computer capable of running Windows 10, regardless if the machine is a legacy BIOS machine with MBR partitioning, or a UEFI machine with GPT partitioning<\/li><li>The ISO image will be bootable on both BIOS \/ MBR and UEFI \/ GPT systems<\/li><\/ul>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\"><strong>NOTE: <\/strong>This post will show how to use a virtual machine to create the ISO. All virtual machine references and instructions in this tutorial apply to <strong>Hyper-V,<\/strong> available in Windows 10 PRO, Education and Enterprise editions. <em>Oracle VirtualBox and VMware users might need to consult their preferred virtualization platform&#8217;s documentation if instructions can&#8217;t be used as is.<\/em><br>Everything in this instruction can be made in each edition of Windows 10 (in Home and Single Language editions using a third party virtualization platform) with native Windows tools and programs, apart from Windows Deployment and Imaging Tools, part of Windows 10 <strong>Assessment and Deployment Kit <\/strong>(ADK) needed later in the post. The <strong>ADK <\/strong>is a <em>free<\/em> native Microsoft tool, downloadable directly from Microsoft.<br>If you will do this on a Hyper-V virtual machine (which is the recommended method), make sure to set the new virtual machine to use <strong>Standard Checkpoints <\/strong>instead of default <strong>Production Checkpoints<\/strong>. You can do this in virtual machine&#8217;s settings: <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113129d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 109048\nSize:  81.9 KB\"\/><figcaption>Use Standard Checkpoints<br>Virtual machine generation is irrelevant, you can use <strong>Generation 1<\/strong> or <strong>2<\/strong> as you wish<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"has-background has-small-font-size has-light-pink-background-color\">This method will produce an ISO image which can be compared to any original Windows 10 ISO you download from Microsoft, apart from the fact that it already contains pre-installed software according to your choice. It will also contain a customized and personalized default user profile, the base Windows uses whenever a new user profile will be created.<br><br>A customized default user profile means that whenever a new user account is created, all customizations (Start tiles, File Explorer &amp; desktop icon and view settings, colors, wallpaper, theme, screensaver and so on will be applied to new user profile instead of Windows defaults. <br><br>Installation using this ISO will take somewhat longer than using a standard ISO because it not only contains full Windows setup, but also the pre-installed software. Notice that depending on how much space pre-installed software takes, you might not be able to burn this ISO to a standard 4.7 GB DVD disk but have to use a dual layer disk or a USB flash drive instead. My customized image came out to be about 8.5 GB in size.<br><br>The ISO created will include no user profile folders, personal user data and files.<br><br>This ISO image can be used on any hardware setup capable of running Windows and can be shared, subject to people you share the ISO with have valid licenses and \/ or activation keys for both Windows 10 and pre-installed software.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">System Preparation Procedure<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Download the Windows ISO Installation tool from Microsoft<ul><li>Use this <strong><em><a aria-label=\"TOOL (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.microsoft.com\/en-us\/software-download\/windows10\" target=\"_blank\">TOOL<\/a><\/em><\/strong> to download the ISO and create the installation media<\/li><\/ul><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>Install Windows 10 on your VM using the downloaded ISO<\/li><\/ul>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\">NOTE: <strong>The normal Windows Download from the link above will download Windows 10 Professional. You will need a key for the installation to upgrade to Enterprise Edition and you will need to be able to activate the copy of Windows to be able to save the customizations you create for your ISO.<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Boot into Windows 10 and do the following:<ul><li>Activate the Windows Edition your are installing with your key. You will require internet connectivity. I needed Enterprise Edition so I changed the Product Key In Settings to upgrade it from Professional.<\/li><li>Install your preferred software, customize and personalize Windows, remove \/ add <strong>Start <\/strong>tiles as you wish, and set your preferred group policies (group policies not available in Home and Single Language editions). <strong>Do not run any program you install!<\/strong><\/li><li>Update all software and run Windows Update to get all the latest updates for the image.<\/li><li>Notice that software installed now will be included in ISO install media, and will be pre-installed for all users on each computer you install Windows to using this custom ISO.<\/li><\/ul><\/li><\/ul>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\">NOTE: If Windows on your reference machine is not activated, you cannot personalize it. In this case you need to modify Windows theme (wallpaper, screensaver, colors, sounds) as you wish on another, activated Windows 10 machine, save the theme as a theme file, copy it to inactivated reference machine and apply (double click). <br>Also notice that <strong>Edge <\/strong>as well as other UWP apps do not work when signed in to built-in admin account. If you need a browser to download software you have to use a third party browser or <strong>Internet Explorer<\/strong>. IE can be started from <strong>Run <\/strong>dialog by typing <strong>iexplore <\/strong>and clicking <strong>OK<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Open an elevated command prompt and enter the following:<\/li><\/ul>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Restart Windows in Audit Mode\">\n\n%windir%\\system32\\sysprep\\sysprep.exe \/audit \/reboot\n\n<\/pre>\n\n\n\n<p>Windows will now restart in Audit Mode using built-in administrator account. You will see a <strong>Sysprep <\/strong>prompt in the middle of display:<br><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/123962d1488809958-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 107212\nSize:  73.1 KB\"\/><figcaption>Sysprep Program Window<br><strong>Leave it open for now<\/strong><\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Open <strong>Notepad<\/strong>, paste the following code to it, make the necessary changes to customize the installation, and save it as <br><strong>File name: unattend.xml <\/strong>(exactly this name!) <br><strong>Save as type: All files<\/strong> (important!) <br><strong>Save in folder:<\/strong> <strong><em>C:\\Windows\\System32\\Sysprep<\/em><\/strong><\/li><\/ul>\n\n\n<pre class=\"lang:XML nums:False\" title=\"Sysprep unattend.xml file for 64-bit Windows\">\n\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<unattend xmlns=\"urn:schemas-microsoft-com:unattend\">\n    <settings pass=\"specialize\">\n        <component name=\"Microsoft-Windows-Shell-Setup\" processorArchitecture=\"amd64\" publicKeyToken=\"31bf3856ad364e35\" language=\"neutral\" versionScope=\"nonSxS\" xmlns:wcm=\"http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\">\n            <CopyProfile>true<\/CopyProfile>\n        <\/component>\n        <component name=\"Microsoft-Windows-Setup\" processorArchitecture=\"amd64\" publicKeyToken=\"31bf3856ad364e35\" language=\"neutral\" versionScope=\"nonSxS\" xmlns:wcm=\"http:\/\/schemas.microsoft.com\/WMIConfig\/2002\/State\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\">\n            <UserData>\n               <AcceptEula>true<\/AcceptEula>\n               <FullName>Your Full Name<\/FullName>\n               <Organization>Your Organization Name<\/Organization>\n               <ProductKey>\n                  <Key>Your 25 Digit Product Key in format XXXXX-XXXXX-XXXXX-XXXXX-XXXXX<\/Key>\n                  <WillShowUI>Never<\/WillShowUI>\n               <\/ProductKey>\n            <\/UserData>\n         <\/component>\n    <\/settings>\n<\/unattend>\n\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>When Sysprepping with the <strong>Generalize <\/strong>switch, which we will soon do, the component <strong>CopyProfile<\/strong>  being set to be <strong>TRUE<\/strong> in answer file has a small issue or rather a small inconvenience: <strong><em>it leaves the last used user folders and recent files of built-in admin to end user&#8217;s Quick Access in File Explorer.<\/em><\/strong><\/li><li>To fix this, we need to reset <strong>Quick Access <\/strong>to default whenever a new user signs in first time. It requires the need to run a small batch file at first logon of new user, and then remove the batch file itself from user&#8217;s <strong>%appdata%<\/strong> so Quick Access will not be reset on any subsequent logon.<\/li><li>To do this, open an elevated (Run as administrator) <strong>Notepad<\/strong> (Notepad must be elevated to save in system folders), paste the following code to it, save it as:<br><strong>File name: RunOnce.bat <\/strong>(or any name you prefer, with extension .bat)<br><strong>Save as type: All files<\/strong> (important!)<br><strong>Save File in folder:<\/strong> <strong><em>%appdata%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup <\/em><\/strong><\/li><\/ul>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"RunOnce.bat file\">\n\necho Y | del %appdata%\\microsoft\\windows\\recent\\automaticdestinations\\*\ndel %0\n\n<\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Delete all existing user accounts and their user profile data (<strong>Option One <\/strong>in this <a rel=\"noreferrer noopener\" href=\"https:\/\/www.tenforums.com\/tutorials\/5464-user-account-delete-windows-10-a.html\" target=\"_blank\"><strong>tutorial<\/strong><\/a>)<\/li><li>You are currently signed in using Windows <strong>built-in administrator account<\/strong>. In File Explorer, open <strong>C:\\Users\\Administrator <\/strong>folder and check that all user folders are empty deleting all possibly found content <\/li><li>Run <strong>Disk Clean-up<\/strong>, selecting and removing everything possible (<a rel=\"noreferrer noopener\" href=\"https:\/\/www.tenforums.com\/tutorials\/3012-disk-cleanup-open-use-windows-10-a.html#option2\" target=\"_blank\"><strong>tutorial<\/strong><\/a>)<\/li><li>When the disk has been cleaned, create a checkpoint of the VM from Hyper-V Manager. <strong>Right Click VM > Click Checkpoint<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"435\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/07\/image-2-1024x435.png\" alt=\"\" class=\"wp-image-547\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/07\/image-2-1024x435.png 1024w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/07\/image-2-300x127.png 300w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/07\/image-2-768x326.png 768w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2019\/07\/image-2.png 1180w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Manual Checkpoint from Hyper-V Manager<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>In Sysprep dialog still open on your desktop, select <strong>System Cleanup Action: Enter System Out-of-Box Experience (OOBE),<\/strong> select <strong>Shutdown Options: Shutdown<\/strong>, select (tick the box) <strong>Generalize<\/strong>, click <strong>OK<\/strong>:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113133d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 110675\nSize:  14.0 KB\"\/><figcaption>Sysprep Selected Options Before Shutdown<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\"><strong>Sysprep <\/strong>will now prepare Windows, shutting down machine when done. <strong>LEAVE THE VM OFF AND DO NOT RESTART IT! <\/strong>Now, we continue to the Image Creation section.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113134d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 110209\nSize:  3.4 KB\"\/><figcaption>Sysprep Preparing the Machine<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Image Creation Procedure<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>On your Hyper-V Host machine, open <strong>Disk Management <\/strong><\/li><li>Select <strong>Attach VHD <\/strong>from <strong>Action<\/strong> menu:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113174d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 109944\nSize:  18.3 KB\"\/><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Browse to and select your reference virtual machine&#8217;s VHD \/ VHDX file. If you have any checkpoints (AVHD \/ AVHDX files) created on this vm, select the one with most recent time stamp. <em>Note that you have to select show all files to be able to see checkpoint AVHD \/ AVHDX files:<\/em><\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113169d1481415728-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113169d1485974750t-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Click image for larger version.\u00a0\n\nName:\timage.png\u00a0\nViews:\t987\u00a0\nSize:\t94.6 KB\u00a0\nID:\t113169\"\/><\/a><figcaption>Select the most recent time stamped file<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Select the check box labeled <strong>Read-only (this is very important!)<\/strong>, then click <strong>OK<\/strong>:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113170d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 110148\nSize:  15.3 KB\"\/><figcaption>BE SURE TO SELECT READ-ONLY<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\"><strong>IMPORTANT: Forgetting to select Read-only will especially when mounting a checkpoint AVHD \/ AVHDX file make it unusable for Hyper-V! You will NOT be able to boot your VM and could corrupt it should you have write access on the mounted VHDX file.<\/strong><br><strong>Windows mounts the virtual hard disk, and all of its partitions, as separate disk. In case of an MBR disk it even mounts the system reserved partition. <\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113171d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 110574\nSize:  6.3 KB\"\/><\/figure>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\">NOTE: In the above picture the Windows system partition for the reference VM is drive <strong>K:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Open the Windows system partition VHD to be sure that&#8217;s the one where Windows is installed, note the drive letter your host assigned to it.<\/li><li>Open an elevated <strong>Command Prompt<\/strong>, enter the following command to create a new <strong>install.wim <\/strong>file:<\/li><\/ul>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"dism command to create the image\">\n\ndism \/capture-image \/imagefile:D:\\install.wim \/capturedir:K:\\ \/name:\"AnyName\" \/compress:maximum \/checkintegrity \/verify \/bootable\n\n<\/pre>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\">NOTE: <strong>D:\\install.wim<\/strong> path in this case is the drive and directory where you want to save the image file. <strong>K:\\<\/strong> path is the capture path with subfolders of the drive you want to image FROM<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113172d1481417048-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113172d1485974750t-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Click image for larger version.\u00a0\n\nName:\timage.png\u00a0\nViews:\t907\u00a0\nSize:\t26.5 KB\u00a0\nID:\t113172\"\/><\/a><figcaption>dism command<\/figcaption><\/figure>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\">NOTE: The name given in <strong>\/name <\/strong>switch in above command is irrelevant as we will name the ISO later on, but is needed for the command to run. Use any name you want to for the switch parameter.<br>The image process will take time, go get something to eat as I did. On my high end Hyper-V server this takes over 20 minutes, the first half of it without showing any progress indicator whatsoever. <strong>DISM <\/strong>works somewhat faster if you don&#8217;t use optional switches <strong>\/checkintegrity <\/strong>and <strong>\/verify <\/strong>but it is not recommended that you to create install.wim without checking its integrity and verifying it.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>When completed capturing the image, detach the VHD \/ VHDX or AVHD \/ AVHDX file from host by right clicking it in <strong>Disk Management <\/strong>and selecting <strong>Detach VHD<\/strong>:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113187d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 109850\nSize:  28.5 KB\"\/><figcaption>Detach the VHDX<\/figcaption><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">ISO Image Creation Procedure<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Mount the original Windows 10 ISO you downloaded in the first step to a Virtuial Drive on your Hyper-V Server Host. <\/li><li>Copy its contents (everything) to a folder you create on one of your Hyper-V host&#8217;s hard disks:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/125114d1489522413-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/125114d1489522413t-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Click image for larger version.\u00a0\n\nName:\timage.png\u00a0\nViews:\t1221\u00a0\nSize:\t463.8 KB\u00a0\nID:\t125114\"\/><\/a><\/figure><\/div>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\"><strong>I named the folder ISO_Files and placed it on the D: drive where I had created the image from the previous section. Alternatively, you can copy the contents of a created Windows 10 install USB or DVD to the ISO_Files\u200b folder. <\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Browse to your custom <strong>install.wim <\/strong>created earlier in previous section. Copy it to <strong>Sources <\/strong>folder under the <strong>ISO_Files <\/strong>folder, replacing the original <strong>install.wim<\/strong> in that directory:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113173d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 110062\nSize:  55.8 KB\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/images\/notesmall10.png\" alt=\"Note\"\/><\/figure>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\"><strong>IMPORTANT: If the ISO you used when copying the files to the ISO_Files folder has been made with Windows Media Creation Tool, the ISO_Files\\Sources folder contains an<em> install.esd<\/em> file instead of <em>install.wim<\/em>.<br>In this case you will naturally not get &#8220;File exists&#8221; prompt. <em>Simply delete the install.esd file and paste your custom install.wim to replace it.<\/em><\/strong> <strong><em>This will help reduce the overall size of the ISO and not confuse the installation process when ran.<\/em><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Now, we download the latest <strong>Windows Assessment and Deployment Kit(ADK)for Windows 10<\/strong>: <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.microsoft.com\/en-us\/windows\/hardware\/windows-assessment-deployment-kit\" target=\"_blank\">Windows ADK downloads &#8211; Windows Hardware Dev Center <\/a><br>The full download for the <strong>ADK <\/strong>is about 7.5 GB but luckily we only need the <strong>Deployment Tools <\/strong>portion. So, unselect everything else except <strong>Deployment Tools<\/strong> and click <strong>Install<\/strong>:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/123969d1488814496-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 106320\nSize:  348.3 KB\"\/><figcaption>Select Only Deployment Tools for the Installation<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>Once completed, you should have a folder within your start menu for the ADK Tools Installation under the folder <strong>Windows Kits<\/strong>. Start the <strong>Depl<\/strong><b>oyment and Imaging Tools <\/b>interface program by <strong>Running the Program as an Administrator<\/strong>:<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113176d1485974750-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Name:  image.png\nViews: 110029\nSize:  38.8 KB\"\/><figcaption>Right Click the Application and &#8220;Run As Administrator&#8221;<\/figcaption><\/figure><\/div>\n\n\n\n<ul class=\"wp-block-list\"><li>At the command prompt, type <strong>cd\\<\/strong> to bring your prompt to the root of the folder path you are on.<\/li><li>Type the following command to initiate creation of the ISO image file:<\/li><\/ul>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"ISO File Creation Command\">\n\noscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,bd:\\iso_files\\boot\\etfsboot.com#pEF,e,bd:\\iso_files\\efi\\microsoft\\boot\\efisys.bin d:\\iso_files d:\\14986PROx64.iso\n\n<\/pre>\n\n\n\n<p class=\"has-text-color has-background has-small-font-size has-medium-pink-color has-light-pink-background-color\">Replace three instances of <strong>d:\\iso_files <\/strong>with the path to the ISO_Files folder where you copied Windows installation files. Notice that this is not a typo: first two of these instances are typed as argument for switch <strong>-b<\/strong><em> without a space<\/em> in between the switch and argument. This is to tell the <strong>oscdimg <\/strong>command where to find boot files to be added to ISO. <br><br>Replace <strong>d:\\14986PROx64.iso <\/strong>with the path where you want to store the ISO image. This is where you also name the ISO file what you want the file name to be.<br><br>Although the command seems a bit complicated, everything in it is needed. For more information about the <strong>oscdimg <\/strong>command line options, see: <a rel=\"noreferrer noopener\" href=\"https:\/\/technet.microsoft.com\/en-us\/library\/cc749036(v=ws.10).aspx\" target=\"_blank\">Oscdimg Command-Line Options<\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113179d1481421043-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\"><img decoding=\"async\" src=\"https:\/\/www.tenforums.com\/attachments\/tutorials\/113179d1485974750t-create-windows-10-iso-image-existing-installation-image.png?s=71fff5db2fd2e4567ec2cace49ce3248\" alt=\"Click image for larger version.\u00a0\n\nName:\timage.png\u00a0\nViews:\t1467\u00a0\nSize:\t54.6 KB\u00a0\nID:\t113179\"\/><\/a><figcaption>Screenshot of the OSCDIMG command ran<\/figcaption><\/figure><\/div>\n\n\n\n<p>You now have a completed ISO image ready for distribution to your machines. The overall process took me about 4 hours to complete with all the customizations that I did. Thanks again to Ten Forums for the article. I have provided references below for your convenience as well. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"text-align:center\">HAPPY IMAGING!!<br>PLEASE COMMENT!!<\/h2>\n\n\n\n<p class=\"has-small-font-size\"><em><strong>REFERNCES:<\/strong><\/em><br><a aria-label=\"Create Windows 10 ISO image from Existing Installation (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.tenforums.com\/tutorials\/72031-create-windows-10-iso-image-existing-installation.html\" target=\"_blank\">Create Windows 10 ISO image from Existing Installation<\/a><br><a aria-label=\"Open and Use Disk Cleanup in Windows 10 (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.tenforums.com\/tutorials\/3012-open-use-disk-cleanup-windows-10-a.html#option2\" target=\"_blank\">Open and Use Disk Cleanup in Windows 10<\/a><br><a aria-label=\"Download Windows 10 (opens in a new tab)\" rel=\"noreferrer noopener\" href=\"https:\/\/www.microsoft.com\/en-us\/software-download\/windows10\" target=\"_blank\">Download Windows 10<\/a><br><a href=\"https:\/\/superuser.com\/questions\/1074940\/windows-10-sysprep-how-to-skip-entering-product-key-enter-hostname\">Windows 10 sysprep &#8211; how to skip entering product key<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/developer.microsoft.com\/en-us\/windows\/hardware\/windows-assessment-deployment-kit\" target=\"_blank\">Windows ADK downloads \u2013 Windows Hardware Dev Center<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been currently assisting with onboarding at my new Full Time Contractor position at Microsoft. All of the new FTCs received laptops<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/itblog.ldlnet.net\/index.php\/2019\/07\/15\/create-a-custom-windows-10-image-for-distribution-using-and-iso-image\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":316,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,140,3,30,16],"tags":[211,34,33,213,212,215,20,214],"class_list":["post-546","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general","category-hyper-v","category-powershell","category-vmware","category-windows","tag-adk","tag-hyper-v","tag-hypervisor","tag-image","tag-imaging","tag-sysprep","tag-windows","tag-windows-10","odd"],"_links":{"self":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/546","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/comments?post=546"}],"version-history":[{"count":4,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/546\/revisions"}],"predecessor-version":[{"id":909,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/546\/revisions\/909"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media\/316"}],"wp:attachment":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media?parent=546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/categories?post=546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/tags?post=546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}