locked
MDT Captured wim deployment RRS feed

  • Question

  • Hi,

    I am trying to deploy a captured Wim using a custom task sequence using MDT 2013 update. everything is going good. I am using the below mention Run command line step..

    dism /Apply-Image /ImageFile:"Z:\Captures\Win10Custom.wim" /Index:1 /ApplyDir:W:\

    However i want to know is it possible to deploy the Wim from captures folder using the wildcard name.

    dism /Apply-Image /ImageFile:"Z:\Captures\*.wim" /Index:1 /ApplyDir:W:\

    with any powershell script or any VBS.

    Please help me.


    Lalit

    Saturday, April 2, 2016 6:49 PM

All replies

  • Why not just use the built in MDT functionality?

    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.

    Sunday, April 3, 2016 3:12 AM
  • I got this requirement from my manager i have tried everything tried renaming the file. 

    now i have no idea what to do.


    Lalit

    Sunday, April 3, 2016 4:45 AM
  • I am using below mention powershell script but its not moving wim into the backup folder using new name can someone hep me. i m using this prior to os install step in task sequence.

    $dir = "E:\Captures"
    $File = "E:\Captures\Win10.wim" 
    $Destination = "E:\Captures\Win10_old.wim"

    If ((Test-Path $File) -eq $true) {
        move-item -path $file -destination $Destination -force
    }  

    $latest = Get-ChildItem -Path $dir -File *.wim | Sort-Object LastAccessTime -Descending | Select-Object -First 1
    rename-item -Path E:\Captures\$latest -NewName Win10.wim -Force


    Lalit

    Sunday, April 3, 2016 5:44 AM
  • What your manager wants with the wild card is not possible. You are on your own using a dism command line step. This is a better route: http://deploymentresearch.com/Research/Post/357/Building-reference-images-like-a-boss

    You will need to import any OS you want to use in MDT.


    Logs are very important. https://keithga.wordpress.com/2014/10/24/video-mdt-2013-log-files-basics-bdd-log-and-smsts-log/ Mention any customizations you have made.




    • Edited by Ty Glander Monday, April 4, 2016 1:05 AM
    • Proposed as answer by Dan_Vega Monday, April 4, 2016 1:52 PM
    Sunday, April 3, 2016 11:17 PM