Create source from an official (M$) ISO of Windows in order to work with DISM command

Discussion in 'Windows 10' started by Alberto_C, Nov 9, 2015.

  1. Alberto_C

    Alberto_C MDL Junior Member

    Oct 21, 2015
    57
    10
    0
    Hi,

    in ordre to fix a problem "sfc scannow cannot repair corrupted files", I work with DISM command.
    When repair is impossible online (no connection with M$'s servers ...) It might be possible to do it offline.
    So, I have a problem to uncompress Install.wim to make "source" file. Not those are uncompressed from M$'s .ESD to ISO By DVD Decrypter (very easy with 7Zip ...), but Is really impossible for me extract a decompressed WinSxS from Officials M$ ISO !
    Are they crypted ?

    Any idea how to do it ?
     
  2. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,232
    1,795
    90
    #2 Stannieman, Nov 9, 2015
    Last edited: Nov 9, 2015
    So if I understand it correctly you want to access files inside install.wim and are facing problems, right?
    If you're now mounting the wim and trying to copy the files, you can instead try dism /apply-image. This way dism really writes the files to the destination instead of just "showing" them there.

    BTW yes, some files in WinSxS are compressed on a file per file basis (not image wise). I'm not sure if dism handles that, but IIRC it doesn't.
    You may be able to fix it by extracting the required package with this tool. I'm not sure if you can use it with restorehealth though. Instead you might need to remove the package and reïnstall it. And probably you won't be able to remove the package in the first place, which in turn can be worked around.
    But as you see I use a lot of "I think, I'm not sure, may, might and probably", so considering that and the complexity of all this I think it's easier to figure out why it won't work with the sources "from internet".
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. neofita

    neofita MDL Junior Member

    Nov 27, 2013
    53
    44
    0
    Mount your .iso (double click on it), you'll see it like a cdrom in Explorer (virtual drive)
    launch (admin cmd prompt) (X=the letter of your virtual drive)
    Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:X:\sources\install.wim:1 /limitaccess
    on successful operation, reboot
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    12,361
    13,456
    340
    Murphy78 made a very handy script to do an offline repair. It uses a (clean) install medium if found, if not found the script will try the online method.

    The script can work with install.wim, install.swm or install.esd on the install medium.

    Maybe you can ask him about the script called: Windows System File Restore -murphy78
     
  5. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,232
    1,795
    90
    Didn't know you can just feed it a wim. Avery day is a day to learn, so thanks for the info!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Alberto_C

    Alberto_C MDL Junior Member

    Oct 21, 2015
    57
    10
    0

    Tested with the UltraISO's VirtualCD,
    M$'s Genuine ISO (Win 10 Enterprise) mounted on virtual CD,
    Launch Admin Prompt : Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:X:\sources\install.wim:1 /limitaccess

    And ... It works, It works fine !!!

    Grazie molte neofita per il metodo che mi hai appreso.
    Thank you everibody for yours answers.