PowerShell Scripting - Update Windows 10 USB install media  

Page 3 of 4 FirstFirst 1234 LastLast
  1.    21 Jul 2018 #20

    Well, I followed Kari's tutorial. I mounted the iso, copied the install.wim to a folder on my hard drive, modified it by adding the latest cumulative update with Powershell script. The problem arises when trying to delete the install.wim file from the mounted iso and replace it with the modified install.wim. It will not allow deleting and it doesn't have any security tab in properties. All of my drives are formatted with NTFS, seems silly to have to change the format to fat32.
    Kari suggested converting the folder with all of the copied files and modified install.wim back to an iso. I have PowerIso and Iso Buster, I'm sure there are other ways too, and Kari even made a script to do it. Just wish I knew why I can't delete the install.wim from the mounted iso??
      My ComputerSystem Spec

  2.    21 Jul 2018 #21

    Barefoot said: View Post
    Just wish I knew why I can't delete the install.wim from the mounted iso??
    You can't, I can't, no one can. See my post above.

    After you extract to a folder, and replace install.wim do the following.

    Download, and unzip this file. It is from Microsoft. Place it in you System32 folder for ease of use. I always have it in every install I do.

    oscdimg.zip

    Then in a command prompt run as admin do this

    Create iso which will boot in BIOS & UEFI


    Code:
    oscdimg -h -m -o -u2 -udfver102 -bootdata:2#p0,e,b<Path to \boot\etfsboot.com>#pEF,e,b<Path to \efi\microsoft\boot\efisys.bin> -l<Description-can be anything or nothing> <Path to Extracted ISO> <Path to New ISO>
      My ComputerSystem Spec

  3. Kari's Avatar
    Posts : 15,373
    Windows 10 Pro
    Thread Starter
       21 Jul 2018 #22

    flybynite said: View Post
    You can't, I can't, no one can. See my post above.
    Exactly.

    @Barefoot, a mounted ISO is a virtual DVD drive, behaving in every aspect exactly as a real DVD-R disk on physical DVD drive. It can be read but not written, nothing can be deleted, edited or changed in it.

    Solution is simple: copy everything from mounted ISO to a folder on hard disk, let's say D:\ISO_Files. Replace the original install.wim file on D:\ISO_Files\Sources folder with your updated install.wim. Create a bootable USB flash drive using D:\ISO_Files folder as source, as shown in this tutorial: PowerShell Scripting - Create USB Install Media for Windows 10 | Windows 10 Tutorials

    Alternatively, if you only need new ISO, or if the updated WIM file is too big to be copied to USB (over 4 GB), create an ISO as told in Part Five in this tutorial: Create Windows 10 ISO image from Existing Installation | Windows 10 Tutorials

    Kari
      My ComputerSystem Spec

  4.    21 Jul 2018 #23

    Sorry double post.
    Last edited by Barefoot; 21 Jul 2018 at 21:00.
      My ComputerSystem Spec

  5. Kari's Avatar
    Posts : 15,373
    Windows 10 Pro
    Thread Starter
       21 Jul 2018 #24

    Barefoot said: View Post
    Well, I followed Kari's tutorial. I mounted the iso, copied the install.wim to a folder on my hard drive, modified it by adding the latest cumulative update with Powershell script. The problem arises when trying to delete the install.wim file from the mounted iso and replace it with the modified install.wim. It will not allow deleting and it doesn't have any security tab in properties. All of my drives are formatted with NTFS, seems silly to have to change the format to fat32.
    Kari suggested converting the folder with all of the copied files and modified install.wim back to an iso. I have PowerIso and Iso Buster, I'm sure there are other ways too, and Kari even made a script to do it. Just wish I knew why I can't delete the install.wim from the mounted iso??
    I am confused. This is an exact duplicate of the post you posted almost an hour and a half ago, which was replied by @flybynite 15 minutes later, and me 20 minutes after him. Then, 40 minutes after being given both explanation and solution, you post the same again?

    My reply to you (post #22) not only explains why you can't do that, it also gives you a solution. Please read that post.

    Kari
      My ComputerSystem Spec

  6.    21 Jul 2018 #25

    Gentlemen, it all makes sense now and please accept my apology. For some reason, maybe not refreshing the page while working on things for few hours. I must have double posted because I clicked reply and when coming back later, the text was still in the reply box and not posted, so I clicked reply again. I didn't know it posted twice until you mentioned it. Also, for some reason I didn't see your posts #21 & 22 here.
    I can trim it all out if it will help.
    Your posts and instructions have been read & understood. Thank you.
    Last edited by Barefoot; 22 Jul 2018 at 14:55.
      My ComputerSystem Spec

  7.    15 Nov 2018 #26

    Hi,

    Is there a way to integrate a new version on windows into a previous version? or i have to download the full ISO?

    Thanks in advance
      My ComputerSystem Spec

  8.    15 Nov 2018 #27

    I am not sure what you mean, but the answer I am sure is download the whole ISO.
      My ComputerSystem Spec

  9.    15 Nov 2018 #28

    flybynite said: View Post
    I am not sure what you mean, but the answer I am sure is download the whole ISO.
    Microsoft just again released version 1809, i have an image with 1803, i want to know if there is a way for me to update the 1803 image to 1809.

    Thanks in advance.
      My ComputerSystem Spec

  10.    15 Nov 2018 #29

    You mean update the 1803 install.wim to 1809?
      My ComputerSystem Spec


 
Page 3 of 4 FirstFirst 1234 LastLast

Tutorial Categories

PowerShell Scripting - Update Windows 10 USB install media Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


Related Threads
If you are not familiar with package managers I recommend you read first the short Chocolatey package manager tutorial at our sister site Windows Eight Forums as an introduction to this tutorial: Chocolatey - Install Apps from Command Line. Although...
The way Windows operating system is delivered and installed has changed quite a lot from days when Windows 3.0 was delivered on 6 floppy disks. To install, you booted PC from floppy 1, which in its turn asked you to eject it and insert floppy 2 to...
General Tips PowerShell Scripting - The Basics in Tutorials
A PowerShell script is a collection of commands and cmdlets to be run in logical order, previous lines in script determining values and variables in command lines thereafter. The principle is the same than in Command Prompt batch files (.bat or...
Despite the abundance of endless text here, it's just my way of being very clear and yes sometimes redundant. The actual 'labor' lol required to install this takes a whopping 1 minute if that. I just provided a tad more info than might be...
Hi, I'm not sure whether this issue should be listed under the Programs and Apps category. Perhaps you could put me right here. I'm finding my WMP is not able to play my Audible .aa and .aax audiobooks, and will not import them. This has been...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 16:29.
Find Us