murphy78 DiskPart and Apply Image Script

Discussion in 'Scripting' started by murphy78, Apr 2, 2014.

  1. fabricio simoes

    fabricio simoes MDL Senior Member

    Dec 17, 2020
    331
    90
    10
    I copied it but Autounattend.xml didn't work, the rest worked normally.

    xcopy y:\windows\autounattend.xml W:\windows\panther\ /cherkyi
     
  2. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,466
    11,872
    240
    @fabricio simoes
    I don't actually know exactly how to get it to work while using the apply-image method of installing windows. Normally Microsoft Windows Setup reads the autounattend.xml and changes things around.
    What you could do, is let MS setup use the script until the first reboot in a virtual machine. Then shut it down. Restart but boot into the dvd/usb and open command prompt. Then search for where it put the autounattend.xml
    do something like
    Code:
    rem change directory to the drive where the files have been installed to (Change d:\ to whatever drive letter it actually is)
    cd /d d:\
    rem do a recursive search for autounattend.xml to find out where windows normally puts it
    dir autounattend.xml /s
    
     
  3. Flipp3r

    Flipp3r MDL Guru

    Feb 11, 2009
    2,042
    1,010
    90
    I think you need to rename it to unattend.xml...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...