Page 2 of 3 FirstFirst 123 LastLast
  1.    26 Sep 2017 #11
    Join Date : Aug 2016
    S/E England
    Posts : 4,472
    10 Home x64 (1709) (10 Pro on 2nd pc)

    The DISM command can be run offline too, and may be able to repair things sfc cannot.

    You'll need the install media for the same version of Windows (1703, 1607, etc.) as is installed on the PC you are trying to repair. If that is 1703 you can easily make the install media (a USB would probably be the most convenient to use) with the Media Creation Tool. With a bit of fiddling you can get a .iso of 1607 direct from Microsoft too. For 1703 and 1607 the install media will contain both Home and Pro.

    The install media will contain either an install.esd or install.wim. If it's the bootable USB made by the MCT it will be .esd. DISM can use either. You can boot from the USB and select the 'repair this PC' option to get to a command prompt.

    When you boot from a USB the drive letters assigned to the drives may well be different. See this post for an example of using DISM offline, and the next couple of posts for clarification of finding the correct drive letters, and the command to use .esd instead of .wim. Note the need to use an index number 1 or 2 in the command. This specifies the edition, 1 is for Pro and 2 is for Home. Adding the /limitaccess parameter to the DISM command line will prevent it trying to check online for updates.
      My ComputersSystem Spec
  2.    27 Sep 2017 #12
    Join Date : Sep 2017
    Posts : 24
    10
    Thread Starter

    This is very interesting.

    I need the anniversary edition. I used the window 10 media creator from microsoft, but i believe that the CREATOR edition it downloads?

    how do i point the dism to the boot on my usb in window pre installed enivornment(i used Kyle version)?
      My ComputerSystem Spec
  3.    27 Sep 2017 #13
    Join Date : Aug 2016
    S/E England
    Posts : 4,472
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by goldenstar View Post
    I need the anniversary edition. I used the window 10 media creator from microsoft, but i believe that the CREATOR edition it downloads?
    Yes, the MCT makes Creators Update media (1703). To get the Anniversary Update (1607) ISO direct from Microsoft, use Edge and go to the Download Windows 10 page where you would normally download the MCT. Now press F12 to use the F12 Developers Tools. On the Emulation tab, set 'User agent string' to 'Apple Safari (iPad)'. The page will change to this one offering a choice of ISOs to download.

    Click image for larger version. 

Name:	Select edition.PNG 
Views:	1 
Size:	16.8 KB 
ID:	155324

    Alternatively, if you still have an old copy of the MCT that made 1607 media it will still do so. You can tell the version of the MCT by looking at the Details tab on its Properties. The version matches the build number of the media it creates, for 1607 that's 14393. (For Creators update that would say 15063.)

    Click image for larger version. 

Name:	MCT version.PNG 
Views:	21 
Size:	17.2 KB 
ID:	155325
      My ComputersSystem Spec
  4.    27 Sep 2017 #14
    Join Date : Aug 2016
    S/E England
    Posts : 4,472
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by goldenstar View Post
    how do i point the dism to the boot on my usb in window pre installed environment (i used Kyle version)?
    Open a Command prompt. Use DIR on each drive letter in order to identify what letter is being used for your Windows system drive. It is unlikely to be seen as C: when you are booting from a USB. In this example my C: drive appeared as E: when booting from a USB. I created the e:\scratch folder before running the command. The install media was on the D: drive. the index 1 at the end of the /source parameter is for Pro, for Home you should use 2.

    Code:
    dism /image:e:\ /cleanup-image /restorehealth /source:esd:d:\x86\sources\install.esd:1 /scratchdir:e:\scratch /limitaccess
    If you have the install.wim rather than the .esd, then use...
    Code:
     /source:wim:d:\x86\sources\install.wim:1
    You may well have to change the drive letters and source path to match what you have on your system.
    Last edited by Bree; 27 Sep 2017 at 20:09.
      My ComputersSystem Spec
  5.    28 Sep 2017 #15
    Join Date : Jun 2014
    USA
    Posts : 1,570
    Windows 10 Pro x64

    Out of curiosity may I ask where the OP even got the idea to delete the WINSXS folder???

    This is the one of the dangers of listening to some of those on-line so-called "Windows experts". Especially in forums where there isn't some type of moderation and pushback from those that really do know what they're talking about. Luckily we have those checks and balances here.

    Anyway Bree and others have this well under control, I just wanted to add that comment.

    Peace.
      My ComputersSystem Spec
  6.    28 Sep 2017 #16
    Join Date : Sep 2017
    Posts : 24
    10
    Thread Starter

    Oddly enough, the WinSXS is indeed getting larger each time i use sfc /scannow (it failed to fix the corruption). I did confirm it.

    The strange thing is when i tried to search by date of modification(like today), i could not find the files that was added or modified.

    I will try Bree suggestions. His suggestion is the best so far!

    Bree, thank you for taking the time to write this. I can't believe there are good people like you helping others .
      My ComputerSystem Spec
  7.    28 Sep 2017 #17
    Join Date : Aug 2016
    S/E England
    Posts : 4,472
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by goldenstar View Post
    Oddly enough, the WinSXS is indeed getting larger each time i use sfc /scannow...
    The strange thing is when i tried to search by date of modification(like today), i could not find the files that was added or modified.
    It depends on how you were determining the 'size' of WinSxS, File Explorer can be misleading ...
    ...it can appear that more than one copy of the same version of a file is stored in more than one place on the operating system, but there’s usually only one real copy of the file. The rest of the copies are just “projected” by hard linking from the component store.... Some tools, such as the File Explorer, determine the size of directories without taking into account that the contained files might be hard linked. This might lead you to think that the WinSxS folder takes up more disk space than it really does.
    https://docs.microsoft.com/en-us/win...-winsxs-folder

    It may well be that sfc /scannow had duplicated some hard links, making WinSxS appear larger without actually growing in size. This effect can lead to some amusing side-effects
    Cleaning up 3.99TB space on a 100GB HDD?
      My ComputersSystem Spec
  8.    30 Sep 2017 #18
    Join Date : Sep 2017
    Posts : 24
    10
    Thread Starter

    Quote Originally Posted by Bree View Post
    It depends on how you were determining the 'size' of WinSxS, File Explorer can be misleading ...
    https://docs.microsoft.com/en-us/win...-winsxs-folder

    It may well be that sfc /scannow had duplicated some hard links, making WinSxS appear larger without actually growing in size. This effect can lead to some amusing side-effects
    Cleaning up 3.99TB space on a 100GB HDD?


    How do fix this if sfc /scannow duplicates hard links?
      My ComputerSystem Spec
  9.    30 Sep 2017 #19
    Join Date : Aug 2016
    S/E England
    Posts : 4,472
    10 Home x64 (1709) (10 Pro on 2nd pc)

    Quote Originally Posted by goldenstar View Post
    How do fix this if sfc /scannow duplicates hard links?
    Once you can boot into a working windows, use Disk Clean up and its 'clean up system files' button. That should fix it.
      My ComputersSystem Spec
  10.    30 Sep 2017 #20
    Join Date : Sep 2017
    Posts : 24
    10
    Thread Starter

    I got an error while trying Bree commands,

    Cannot access files of scratch directory. Make sure you have permission.


    Another question: If i RESET my pc from window 10 boot, does it really delete all my files(documents and pictures)?
      My ComputerSystem Spec

 
Page 2 of 3 FirstFirst 123 LastLast


Similar Threads
Thread Forum
Solved Running out of Hard Drive space
I have a HP Stream 11 laptop I bought from Walmart, it came with Windows 8.1 and I went through the charade of upgrading from 8.1 to 10 so it would validate they key and then I immediately did a clean install. Sadly with this laptop, it only has a...
Performance & Maintenance
Hard Drive Space Used Bar Color
Greetings, I am going to abuse your good nature again! I am attempting to create a green theme in Windows 10. I am progressing rather well (background, Start10, explorer windows, etc). I have read a number of resources which show how to change...
Customization
Hard drive used space more than doubled...
Can't figure this out. Have a Tablet 2 in 1 with W10 and 32GB SSD. Have not installed any programs. A few days ago the size of the used space on he drive was 7.8 now, it is 16.6GB. Any clues?
Performance & Maintenance
How can I extend my hard drive space?
I'm going under Computer Management>Disk Management and have deleted a partition which gave me the unallocated 48gb, and I'm trying to add that unallocated space to the main drive (C), and it's not letting me, When I right the C drive there is only...
Drivers and Hardware
Hard Drive\Non-Hard Drive Question - How Much Space ?
I have a lot of hard drives on quite a few pc's. I have always read that you should keep a minimum of 15% of free space on any hard drive, which I do on all of my hard drives (7 I think). I recently bought a LIVA MINI-PC and instead of a hard...
General Support
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 12:58.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums