Capturing and Deploying Your Own Custom .wim File

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ • 107

  • @paulmoesher
    @paulmoesher  8 місяців тому

    Consider supporting if this video helped you: paypal.me/paulmoesher

  • @petergeton
    @petergeton 3 місяці тому +2

    Its wild something this simple and straight forward didnt exist anywhere before. Thank you.

  • @alvinwang8692
    @alvinwang8692 Рік тому +5

    Thank you for making a detail guide on this. Really helpful. Cheers!

  • @devviz
    @devviz Рік тому +4

    20:04 since we already captured the entire windows instance into a .wim file we can just put it into a usb flash drive with ventoy preinstalled and boot into that wim file, save a little hassle there imo

    • @ManMan.TheReckoning
      @ManMan.TheReckoning 2 місяці тому

      Since you brought it up, I'm curious too. As long as i didn't f myself, I'll give it a try.

  • @liamfwheatley4657
    @liamfwheatley4657 Рік тому +4

    Great job Paul, very helpful information, well done

  • @realzguardian
    @realzguardian Рік тому +3

    Thanks for the guide you're extremely underrated!

  • @Francoisdp82
    @Francoisdp82 10 місяців тому

    Thanks for the detailed video. Much appreciated.

  • @fbifido2
    @fbifido2 Рік тому +1

    @21:49 - index 1 is very large 26GB
    Can you look to see what's in that file?
    before sysprep the OS disk used ~40GB, maybe do a cleanup before you sysprep
    and do compression when moving from WIM to ESD.

  • @brandonirwin1565
    @brandonirwin1565 9 місяців тому

    Thanks for the tutorial...very easy to follow and works like a charm!

  • @EmEhKay
    @EmEhKay 11 місяців тому +1

    Thanks bro, this was really useful. Question though, after booting into WinPE is it possible to just export the .wim file directly into the \sources folder of the USB iso? (I did this with Win11 and it looks like they no longer create .esd files, just the install.wim)

    • @paulmoesher
      @paulmoesher  11 місяців тому +1

      In that case just then yes I would just import directly.

  • @christiandejesus7452
    @christiandejesus7452 3 місяці тому

    Amazing video! Thank you for this!

  • @WillT888
    @WillT888 8 місяців тому +1

    Very helpful for my project. Thank you!

  • @MrFmontero
    @MrFmontero 5 місяців тому

    TY So much Paul this is great. any tips recommendations (I have started looking myself) on creating an image that has several drivers (ex. dell Latitude series) so that when I deploy to other I don't need to update the drivers for the various different hardware models? Thank you.

  • @ozmantzur9935
    @ozmantzur9935 11 місяців тому

    Thanks for that great tutorial!
    One Q: in the block with Windows Media Creation tool you select the ISO file option and then using Rufus to create the flash drive from the ISO. I don't understand why not to just select The USB drive from the beginning?

    • @paulmoesher
      @paulmoesher  11 місяців тому +1

      Rufus gives the option to skip/predetermine responses to the Windows user experience questions which saves a lot of time when imaging several units.

  • @N0TIS7
    @N0TIS7 10 місяців тому

    Great video! Can this be used to perform an in place upgrade? If for example you have windows srv 2016 wim and iso, after doing thw whole procedure, can this iso be used to perform an in place upgrade on a win srv 2012? Or it needs to be a clean install? Thanks in advance

    • @paulmoesher
      @paulmoesher  9 місяців тому

      It should be a clean install.

  • @lemm18
    @lemm18 2 місяці тому

    Question, if we want to keep all of the applications files and everything from my existing computer, do I still need to do sysprep?
    I just want to make a installer of my PC state today and store it as a backup installer if anything happens.
    So, in theory, I should not do sysprep and just boot winPE and capture the current image of my computer right?

    • @paulmoesher
      @paulmoesher  2 місяці тому

      Yes. That being said if that is all you are trying to do I would look into clonezilla it will be a lot more straightforward for what you are trying to do.

  • @asinalsakb
    @asinalsakb Рік тому

    hi
    I am try wim image making but file install to server deploying no working

  • @lemm18
    @lemm18 2 місяці тому

    I can't find the install.wim file on C drive, one thing I noticed after putting the command at the end to create the install.wim file, the copying/creating of image is too quick, not even 1 minute and I have some applications installed already.
    I've tried few times and they all the same but it says success after putting that dism command to copy the image but I got nothing on my C drive or anywhere.
    I'm using Windows 10 version 1809, so that's what I downloaded.

    • @paulmoesher
      @paulmoesher  2 місяці тому

      Maybe try putting a directory on C and write it to there rather than the root of C and see if that works.

  • @eranshalom1336
    @eranshalom1336 Місяць тому

    When you boot into WinPE to capture the image, isn't the C drive actually the root of the WinPE flash drive? Cause I did not find the newly install.wim I captures in the root C of my laptop hard drive

    • @paulmoesher
      @paulmoesher  Місяць тому

      In some cases, it may be if it goes fast that means it did not work right, and I would try it again wiring to D:

  • @amilhrncic498
    @amilhrncic498 2 місяці тому

    Hey Paul, I ran the dism command and the install.wim was only like 2 KB. I'm on windows 11 what do you think my mistake was?

    • @paulmoesher
      @paulmoesher  2 місяці тому

      Was the path correct in the dism command?

    • @amilhrncic498
      @amilhrncic498 Місяць тому +1

      @@paulmoesher Yeah I found the issue, I put the correct path but for some reason my drives changed in safe mode and the inital letters assigned were switched, so the C drive was assigned to my USB drive which is very strange, and my C drive didn't have a letter assigned, then I assigned correct letters and it worked. Thank you for the video it really helped!😁

  • @Dex-je8zt
    @Dex-je8zt Рік тому

    in this procedure, after you deploy your image into machine, does bitlocker work?

    • @paulmoesher
      @paulmoesher  Рік тому +1

      This should not really have any effect on bitlocker. That being said if you have Bitlocker enabled I would recommend having the key stored on a flash drive before reimaging the pc.

  • @BlueGuardianSec
    @BlueGuardianSec 3 місяці тому

    Weird - when I run diskpart from the PE cmd prompt it only lists the PE removable disk and I can't see the system OS volume. I'm running W11 - do I need to modify the disk before I sysprep to make it visible?

    • @paulmoesher
      @paulmoesher  3 місяці тому

      I would look into disk management on the computer to see if maybe it has something nonstandard set.

    • @BlueGuardianSec
      @BlueGuardianSec 3 місяці тому

      @@paulmoesher I ended up mounting the DellPE driver pack into the PE USB and it was able to pick up the drive. These new Dell laptops come with the RST Raid controller package as default and fortunately the Dell PE driver pack can pick it up. It's a process to mount the new drivers into the PE image but essentially once the drivers are extracted into a mount point folder on your HD, run the following commands:
      #set mount point and park boot.wim | "C:\mount" is the name of the mount point folder I created
      dism /mount-wim /wimfile:C:\path\to\your\boot.wim /index:1 /mountdir:C:\mount
      #mount drivers into the mount point | /recurse looks for sub directories and files so you only need the root folder with the drivers in it
      dism /image:C:\mount /add-driver /driver:C:\Dell_WinPE_Drivers /recurse
      #dismount the wim file back to USB (or wherever it was)
      dism /unmount-wim /mountdir:C:\mount /commit
      Hopefully this helps some folks out if you're like me and still using WDS to deploy W11 computers. I can now park this new capture on the WDS server and push it down from there or use the USB.
      Thanks for all the help Paul

  • @Texasdope11
    @Texasdope11 4 місяці тому

    what if my USB doesn't have install.esd, mine has install.wim?

    • @paulmoesher
      @paulmoesher  4 місяці тому

      Refer to the video description.

  • @umarmuti9931
    @umarmuti9931 5 місяців тому

    Error: 112
    There is not enough space on the disk.
    The DISM log file can be found at x:\windows\logs\DISM\dism.log
    How do I resolve this??

    • @paulmoesher
      @paulmoesher  5 місяців тому

      How much space is on C? What does the log say?

    • @umarmuti9931
      @umarmuti9931 5 місяців тому

      421GB free

    • @paulmoesher
      @paulmoesher  5 місяців тому

      @@umarmuti9931 That would be more than enough. I would review the log file.

    • @umarmuti9931
      @umarmuti9931 5 місяців тому

      Okay I will be really grateful if I can resolve this issue.

    • @umarmuti9931
      @umarmuti9931 5 місяців тому

      @paulmoesher I’m currently in a site where I’m trying to create the custom image because I have a lot of system to format.

  • @rocobruno
    @rocobruno Рік тому

    Is there a way to circumvent the USB key and directly inject the insall.wim to an ISO so I can then put it on Ventoy ? Because, as you may know, you can mount an ISO in File Manager but you cannot directly replace the install.wim/esd directly as the ISO file is locked, meaning you can't modify it in any ways. I could use Anyburn but I wish I could use a command line tool to directly replace/inject my custom install.wim without having to go through a USB key, then re-iso it so I can put it in Ventoy...

    • @paulmoesher
      @paulmoesher  Рік тому +1

      I am sorry but I am not sure. That is not something I have ever looked into.

    • @rocobruno
      @rocobruno Рік тому +1

      @@paulmoesher Just tried Anyburn in it's freeware version, and it does just that. Thanks!

  • @MiguelHernandez-jb9ml
    @MiguelHernandez-jb9ml 5 місяців тому

    To deploy the image to other computers are you installing and clicking on setup.exe or install.esd?

    • @paulmoesher
      @paulmoesher  5 місяців тому

      You would use the boot key when the PC is booting up and you would choose to boot from the USB.

    • @MiguelHernandez-jb9ml
      @MiguelHernandez-jb9ml 5 місяців тому

      @@paulmoesher can you not install the image like a regular exe? If not do I need to install from USB on all new computers?

    • @paulmoesher
      @paulmoesher  5 місяців тому

      @@MiguelHernandez-jb9ml For a clean install you should be booting from the usb

  • @jiggyfeets6050
    @jiggyfeets6050 11 місяців тому

    Question, If i am using diffrent machines, but it is still the same device. is generalize necessary? I have to image 30 laptops, all the same.

    • @paulmoesher
      @paulmoesher  11 місяців тому

      In that case no, but even then I don't really see any downside to generalizing.

    • @jiggyfeets6050
      @jiggyfeets6050 11 місяців тому

      @@paulmoesher the only problem is I am getting an error in the log file in the panther file pertaining to the generalize.xml file. Sysprep is a headache 😭

  • @Texasdope11
    @Texasdope11 5 місяців тому

    Hi, thank you for your help! when trying to capture, it went super fast, so I figured something was up. I rand Diskpart, and my OS Drive is not showing on the list? So nothing is being captured essentially.. any suggestions? TIA

    • @paulmoesher
      @paulmoesher  5 місяців тому

      I would triple-check that when you boot the winpe disk you are entering that command in correctly. Normally if it goes super fast for me it's because I had a typo. Next time if it goes fast it should just go to the next line and you can try entering it again.

    • @Texasdope11
      @Texasdope11 5 місяців тому

      So I think I figured this out, the computer is set to RAID - when I set it to AHCI, and ran WinPE it was able to find the disk. But wouldn't this cause onflict when deploying?

    • @paulmoesher
      @paulmoesher  5 місяців тому

      @@Texasdope11 I would think so since its a disk image and not a disk clone.

  • @jasonhawkins4528
    @jasonhawkins4528 8 місяців тому

    Thanks but sysprem doesn't work on updated windows for some reason

    • @paulmoesher
      @paulmoesher  8 місяців тому +1

      There is a log file inside of the sysprep folder that will tell you why it may be failing. Could be a pending update, an app that needs removed/updated, hard to say but the logs will point you in the right direction.

    • @jasonhawkins4528
      @jasonhawkins4528 8 місяців тому

      @@paulmoesher Yes I got to have a look to see why, ive been busy it just comes up with it can't system prep upgraded version of windows, even though it's not upgraded but the wim image without sysprep went fine without errors

  • @brianschumacher8956
    @brianschumacher8956 6 місяців тому

    I'm using an older version of winpe for windows 7? What the command be different? I can't get a dism command to work.

    • @paulmoesher
      @paulmoesher  6 місяців тому

      I don't see why it would not. What is the exact error you are getting?

    • @brianschumacher8956
      @brianschumacher8956 6 місяців тому

      @@paulmoesher capture-image is unknown command. I ended using the windows 7 with imagex pe. I couldn't get the copy pe to work for windows 10 pe. I then used hirens boot CD and the command in your video worked on my main PC. But the computer I was trying to capture couldn't boot into hirens CD. That is why I went back to the windows 7 pe and the imagex command worked.

  • @brian6319
    @brian6319 Рік тому +1

    Thank you very much!

  • @MrFmontero
    @MrFmontero 8 місяців тому

    Hello Paul, helpful so far, the latest version of the copype Command is CopyDandI and was wondering if you have seen and chnges to the parameters (I have a core i7-8650U CPU x64-based processor, but none of the parameters work with the command ( CopyDandI x64, amd64, arm,amd64 none of them work : all say : the follow processor architecture was not found. i also tried x64.). would really help us. TY amazing so far.

    • @paulmoesher
      @paulmoesher  8 місяців тому

      What options do you see if you open Deployment and Imaging Tools Environment and run copype? It looks like there is a way to apply updates to the Windows PE add on. Could be worth a try? learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/winpe-create-usb-bootable-drive?view=windows-11

    • @MrFmontero
      @MrFmontero 5 місяців тому

      @@paulmoesher Hello Paul didn't see this back then Work got nuts. not sure what I did different/ wrong, but I started again from scratch and it worked perfectly! you're the man! thank you so much for your channel so helpful.

  • @Francoisdp82
    @Francoisdp82 10 місяців тому

    Can one capture a Win 11 Pro wim, export it to esd and then place it onto a Windows 10 installation disk?

    • @paulmoesher
      @paulmoesher  10 місяців тому +1

      No the versions of windows need to match.

  • @user-qm3xz8oc9g
    @user-qm3xz8oc9g Рік тому

    My windows install disk for windows 11 has an install.wim not an install.esd. Did this change recently? If so what do you do to make that work? Do I make a .wim file instead?

    • @paulmoesher
      @paulmoesher  Рік тому

      At the 20:03 point of the video, it describes how to convert the install.win to install.esd

    • @user-qm3xz8oc9g
      @user-qm3xz8oc9g Рік тому

      @@paulmoesherthanks for getting back to me. On my windows install disk there is not an .esd to overwrite. There is an install.wim however. So so I just not need to convert? Did windows change its install media?

    • @user-qm3xz8oc9g
      @user-qm3xz8oc9g Рік тому

      Maybe I should try to clarify more. I am talking about the install media that is created from Microsoft. When I got into the sources folder there isn't an .esd file, there is a .wim. On your's there is a .esd file and you convert your ,wim to an .esd and overwrite it. My install disk only has a .wim so do I not convert it to a .esd and just use the .wim? Or is there something else going on here? This is a great video, just need clarification on this! Thanks!

    • @paulmoesher
      @paulmoesher  Рік тому +2

      @@user-qm3xz8oc9g If that is the case then you just need to deploy that original basic .wim on a PC. Customize it however you like for your image then capture the .wim and replace the original install.wim with your updated one. You can skip the conversion step.

  • @becca-p7w
    @becca-p7w 10 місяців тому

    Great video! I am so close to getting this to work. I had a previous captured .wim that was working through PXE and wanted to get it onto a USB for convenience. After using this method, I get "windows cannot open the required file D:\sources\install.wim". It seems after patiently waiting all day for the export, which was 100% successful, the.wim files opens to a .xml file :(

    • @paulmoesher
      @paulmoesher  10 місяців тому +1

      If you have not already I would deploy the pxe wim to a PC and run all of the Windows updates, capture the wim at that point, then make a new bootable Windows flash drive and put it on there. Maybe there is an issue with your older pxe wim not matching up with the Windows version of the USB?

    • @becca-p7w
      @becca-p7w 10 місяців тому +1

      @@paulmoesherI ended up making a fresh bootable USB with Rufus...maybe I had chosen FAT32 instead of NTFS. It runs perfectly now - I'm on my 3rd copy. This is great, you have no idea the time this will save! Thank you.

  • @navr1111111111111111
    @navr1111111111111111 Рік тому

    Once we use Sysprep are we not removing the Windows license assocaited with that image? Won't we need to add another license to any device we deploy using this method?

    • @paulmoesher
      @paulmoesher  Рік тому

      The license is tied to the device hardware not the image

    • @navr1111111111111111
      @navr1111111111111111 Рік тому

      @@paulmoesher Thanks for the response. I must be doing something wrong... When I replace the .esd and boot from that USB and choose windows10 pro it downloads a fresh copy without any installed software/updates. No idea why or how. I know for a fact my esd replaced the original install.esd

    • @navr1111111111111111
      @navr1111111111111111 Рік тому

      Ignore my previous comment.. I must have been using another usb. It worked perfectly thank you. I am attemping to integrate a unattent.xml into the setup to skip OOBE using this method until I can set up WDS/MDT

    • @MiguelHernandez-jb9ml
      @MiguelHernandez-jb9ml 5 місяців тому

      @@navr1111111111111111 do you click on setup or install.esd to deploy the image?

  • @luddman77
    @luddman77 5 місяців тому

    Let's say you have apps on your computer where you have a license to activate them, like word or adobe. Will the license carry over when you install the image on the new computer?

    • @paulmoesher
      @paulmoesher  5 місяців тому

      I feel like best practice would be to not capture the image with the software keys but in theory, if it is a machine-wide install the keys would still be there when you go to deploy if they were there when you captured.

    • @luddman77
      @luddman77 5 місяців тому

      @@paulmoesher Thanks! What is that the best practice? I’m curious.

    • @paulmoesher
      @paulmoesher  5 місяців тому

      @@luddman77 It is basically just a term to describe the agreed upon best way to do something in the IT community.

    • @luddman77
      @luddman77 5 місяців тому

      @@paulmoesher I’m sorry that was a typo. Why would it be considered the best practice to do it before you install the apps?

    • @paulmoesher
      @paulmoesher  5 місяців тому

      @@luddman77 It would be best practice to enter any license keys after installing the image and to not make it part of the image. I believe this to be the case due to some licensing keys not all working the same, some are per user some are per machine. You also do not want software licensed for users who don't need it and should only use the keys on a need-to basis. I like keeping the base image to the essentials and using other solutions to deploy the case-to-case stuff after the PC is joined.

  • @umarmuti9931
    @umarmuti9931 5 місяців тому

    I can’t find install.wim on my c drive

    • @BlueGuardianSec
      @BlueGuardianSec 3 місяці тому

      Back in the PE command prompt, use diskpart to see if the OS volume is visible. If not, you might need to add the PE driver pack for your computer into the PE USB for it to be able to see the drive. I am doing this on a Dell Latitude 3550 and the default PE config doesn't see RAID storage.

  • @lignja8
    @lignja8 Рік тому +2

    bro, u are a GOD!

  • @andymcrae5450
    @andymcrae5450 10 місяців тому

    Thanks so much

  • @MiguelHernandez-jb9ml
    @MiguelHernandez-jb9ml 6 місяців тому

    Do you have a email just in case I have questions? Going to try this

  • @shimonvacknin3602
    @shimonvacknin3602 Рік тому

    Does it work with win 11?

  • @VenkataYerva
    @VenkataYerva 7 місяців тому

    is there any windows 11 please

  • @josephkaneene
    @josephkaneene 9 місяців тому

    Thank you

  • @JonathanDanielMartinezSanc-z1n
    @JonathanDanielMartinezSanc-z1n 4 місяці тому

    I think it's time to do an updated version on this using windows 11, this does not work with windows 11 at least not with the latest versions, it saves the .wim file to the USB drive not the C drive and the size of the .win file its about 300mb, which will definitely not work, I would appreciate a lot if you make an updated version of this thx

    • @BlueGuardianSec
      @BlueGuardianSec 3 місяці тому

      That happened with mine as well. Was wondering if I messed something up

    • @JonathanDanielMartinezSanc-z1n
      @JonathanDanielMartinezSanc-z1n 3 місяці тому

      ​​@@BlueGuardianSec Solved it, I did some modifications to the command and now its working great with both windows 11 and 10 😃👍🏼

    • @BlueGuardianSec
      @BlueGuardianSec 3 місяці тому

      @@JonathanDanielMartinezSanc-z1n Did you modify the volume in disk part? Do share if you have time. Appreciate it!

    • @ShortBusRejectz
      @ShortBusRejectz 2 місяці тому

      ⁠what did you do differently

    • @ShortBusRejectz
      @ShortBusRejectz 2 місяці тому

      @@JonathanDanielMartinezSanc-z1nwhat did you do 😊

  • @EmuBrewHub
    @EmuBrewHub 3 місяці тому

    Hey I actually need help getting my channel going I noticed you don't have too many views on some of your videos and that's the same here for me do you think you could help me I'm asking content creator to content creator

  • @mr.funnyman99
    @mr.funnyman99 Рік тому

    sir plz give custom windose drive link on the discaption plz plz plz

  • @eule8587
    @eule8587 Рік тому

    18:40 dism capture image

    • @sevciu1
      @sevciu1 11 місяців тому

      Note: At mark 18:40 when dism capture image is used, the Windows partition is not always C:\. On my install, C:\ was the 500MB System reserved partition and Windows partition ended up being F:\. It's a good idea to check with diskpart what is the allocated drive letter.
      Cheers!
      By the way, many thanks for the excellent instructions.