Fixing Windows 10 with Windows 8.1 Pro DISM commands?

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 73
    Windows 10 LTSB
    Thread Starter
       #21

    OldNavyGuy said:
    Two things -
    RestoreHealth is the option @Kyhi gave you.
    Z:\ comes before sources.
    You ran Dism /Image:G:\Offline /Cleanup-Image /ScanHealth /Source:wim:Z\sources\install.wim:1
    You should be running Dism /Image:G:\Offline /Cleanup-Image /RestoreHealth /Source:wim:Z:\sources\install.wim:1
    Hi OldNavyGuy,
    Thanks for your post but I am not sure what is your point.
    Unfortunately the result with /RestoreHealth instead of /ScanHealth is the same as posted above: Error 2, i.e. Unable to access to the image. although I fully documented the DVD-ROM path and contents.

    - - - Updated - - -

    Kyhi said:
    This all just leads me to a question. Why are you trying to repair an offline windows 10 image - when you have access to all your files via the bootable windows 8 OS ??? Normally we would use WinPE to gain access to a non-bootable OS for recovery or repair...
    What is so special in your windows 10 OS that can not be saved or redone ?? What is the reason for the repair, rather the a replacement ?

    you could Format G:\ - then apply windows 10 Image
    Dism /Apply-Image /ImageFile:"Z:\sources\install.wim" /Index:1 /ApplyDir:G:\
    and reboot into a clean install of windows 10
    @Kyhi: I am trying to repair the Windows 10 LTSB installation with those DISMs right because it is a very time consuming setup to reinstall al of the software, preferences, configurations of the paths pointing to other legacy volumes, etc. The backup is too old.

    The issue with that Windows 10 LTSB is suddenly (simply dragging an icon on the desktop from one screen to another!) all the screens became black and the rotating dots animation began. I waited for 12 hrs leaving the host all of the time to 'optimize' or doing what Microsoft decided it was necessary.... but with no results.
    Pressing the SHIFT key does not help; neither CTRL+SHIFT+ESC. But pressing the Power key on the keyboard, the PC still regularly switches off. That still works. And at next boot, the rotating dots resume indefinitely again.

    Given this situation under no control, I thought to follow the path of the DISM commands indirectly from 8.1. But as we can see, something produces those Error 2 or 3. And we dont' know why.
    As per those Mount commands, DVD is already mounted, so I am not sure whether I should try your commands at post #post 16 with an ISO....

    Is running the WinPE from DVD a viable option to fix an old Windows 10 LTSB 2016 v 1607 ?
      My Computer


  2. Posts : 1,862
    Windows 10 Pro 2004 20H1
       #22

    butterfly said:
    Hi OldNavyGuy,
    Thanks for your post but I am not sure what is your point.
    The point was in addition to using /ScanHealth instead of /RestoreHealth, you left out the : after the Z in the command.

    You used Z\sources, and it should be Z:\sources.

    Look closely at the differences I highlighted -

    OldNavyGuy said:
    You ran Dism /Image:G:\Offline /Cleanup-Image /ScanHealth /Source:wim:Z\sources\install.wim:1

    You should be running Dism /Image:G:\Offline /Cleanup-Image /RestoreHealth /Source:wim:Z:\sources\install.wim:1
    Probably why it didn't work.

    Seems like the focus needs to shift towards trying to fix the Master Boot Record on the Windows 10 install.

    Fix the MBR – Guide for Windows XP, Vista, 7, 8, 8.1, 10
    Last edited by OldNavyGuy; 16 Nov 2020 at 20:01.
      My Computer


  3. Posts : 4,144
    Windows 3.1 to Windows 11
       #23

    @OldNavyGuy - is correct you had a TYPO in your Z:\Sources - thus will be unable to access image
    Also you are using DISM from Windows 8.1 not windows 10 - so not sure it supports /Source:wim:
    Thus I have always used legacy commands and a Mounted Wim - but you do what you want
    I seem to remember you pm'ed me asking for help - then your reluctant to follow or question the advise given..
      My Computer


  4. Posts : 1,862
    Windows 10 Pro 2004 20H1
       #24

    Kyhi said:
    Also you are using DISM from Windows 8.1 not windows 10 - so not sure it supports /Source:wim:
    From this EightForums tutorial, it appears it does support /Source:wim

    DISM - Fixing Component Store Corruption in Windows 8 | Windows 8 Help Forums
      My Computer


  5. Posts : 4,144
    Windows 3.1 to Windows 11
       #25

    Should point out that is in regards to an Online Image
    MS Offline Repair
    https://docs.microsoft.com/en-us/win...-windows-image
      My Computer


  6. Posts : 73
    Windows 10 LTSB
    Thread Starter
       #26

    Kyhi said:
    @OldNavyGuy [....] - but you do what you want
    I seem to remember you pm'ed me asking for help - then your reluctant to follow or question the advise given..
    @Kyhi
    Hi!
    I think you are mismatching the user; I PMed you privately for help and I am following your suggestions carefully. And I am deeply and strongly appreciating that!

    About your edited Mount command (with DVD-ROM inserted in drive Z):
    Dism /Mount-Image /ImageFile:"Z:\sources\install.wim" /Index:1 /MountDir:C:\mount

    the result is:
    Error: 0xc1510111
    Permissions not available to mount and edit this image.
    Verify that you have read and write permissions or mount the image.
    and the image with the /ReadOnly option. Note that it is not possible to run the commit changes made to an image with read-only permissions.

    CMD is running with Admin rigths, obviously. Is that because the install.wim file in a read-only support such as a DVD? Obviously changing the Install.wim Read Only attribute under Properties is not accepted.
    - Maybe I should try to get the LTSB image on USB key?



    OldNavyGuy posted his suggestions, too.
    OldNavyGuy said:
    Probably why it didn't work.
    Unfortunately even:
    C:\Windows\system32>Dism /Image:G:\Offline /Cleanup-Image /RestoreHealth /Source
    produces an Error 2.
    Last edited by butterfly; 17 Nov 2020 at 12:28.
      My Computer


  7. Posts : 4,144
    Windows 3.1 to Windows 11
       #27

    then copy install.wim to a folder on host - as the DVD is read only
      My Computer


  8. Posts : 73
    Windows 10 LTSB
    Thread Starter
       #28

    @Kyhi


    Here we are!
    I burned an USB key with the LTSB ISO using Rufus 3.12. Operation perfectely worked (MBR, legacy BIOS).
    Its letter is V:\

    So the CMD command was:
    Dism /Mount-Image /ImageFile:"V:\sources\install.wim" /Index:1 /MountDir:C:\mount

    This resulted in an image mounted 100%
    Operation completed.

    Now with:
    Dism /Image:G:\offline /Cleanup-Image /RestoreHealth /Source:C:\mount\windows
    the message is weirdly again:
    Error 2
    Cannot access the image.Check that the path to the image and the Windows directory for the image and exist and have reading permissions for the folder.

    the c:\mount folder is there with the Perflogs, Program Files, Program files (x86), Users and Windows folders. Overall 10.9 Gb 'mounted'.

    finally the command:
    Dism /Unmount-Image /MountDir:C:\mount /discard
    worked flawlessly, unmounting the image and deleting every folders.

    But step #2 still unexpectedly fails. Any idea, please?
      My Computer


  9. Posts : 4,144
    Windows 3.1 to Windows 11
       #29

    try using without (Offline) >
    Code:
    Dism /Image:G:\ /Cleanup-Image /RestoreHealth /Source:C:\mount\windows
    Or try using SFC instead of DISM>
    Code:
    sfc /scannow /offbootdir=G:\ /offwindir=G:\Windows
      My Computer


  10. Posts : 73
    Windows 10 LTSB
    Thread Starter
       #30

    Thank you!
    @Kyhi

    After mounting the install.wim, with your new DISM command:
    C:\Windows\system32>Dism /Image:G:\ /Cleanup-Image /RestoreHealth /Source:C:\mount\windows

    a new error appears:
    Error: 50
    To provide this Windows image you need the latest version of Image Management and Maintenance Distribution.
    See http://go.microsoft.com/fwlink/?LinkId=293395 for the latest product versionand http://go.microsoft.com/fwlink/?LinkId=293394 for information about the installation of the latest version of Image Management and Maintenance Distribution from the ADK of the computer.

    Instead:
    C:Windows system32>
    sfc /scannow /offbootdir=G:\ /offwindir=G:\WindowsStarting the system analysis in progress.
    Please wait. The operation will require some minutes.

    Windows asset protection: no integrity violation found.
    C:Windows system32>

    At this point, about your observation "
    Normally we would use WinPE to gain access to a non-bootable OS for recovery or repair..." a question may arise:
    - Is running the WinPE from DVD a viable option to fix an old Windows 10 LTSB 2016 v 1607?
    Would I need to create a WinPE v 1607?
    Last edited by butterfly; 19 Nov 2020 at 15:14.
      My Computer


 

  Related Discussions
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 09:06.
Find Us




Windows 10 Forums