[Script] Windows 10 Repair Script

Discussion in 'Windows 10' started by murphy78, Aug 14, 2015.

  1. andy.tay70

    andy.tay70 MDL Junior Member

    Dec 15, 2013
    76
    20
    0
    Thanks Murphy, It worked for me :worthy:
     
  2. Edwe

    Edwe MDL Member

    Sep 1, 2011
    152
    10
    10
    Mind sharing what problem it solved?
     
  3. EFA11

    EFA11 Avatar Guru

    Oct 7, 2010
    8,719
    6,741
    270
    top of first post

     
  4. dlfade

    dlfade MDL Novice

    Mar 20, 2010
    19
    2
    0
    A question I always had:

    If these scripts use the original ISO to check for errors, what the hell happens when the OS is actually updated through patches? Wouldn't the use of the dated ISO compromise the actual repair since all that stuff was updated along the way?
     
  5. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    It will only replace exact file that it finds. If you do a /resetbase and the file doesn't exist on the install media, it will not replace it; obviously.
     
  6. Chibi ANUBIS

    Chibi ANUBIS MDL Chibi Developer

    Apr 28, 2014
    1,237
    911
    60
    Thanks is good ! :clap:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. robsinbc

    robsinbc MDL Junior Member

    Apr 5, 2014
    54
    20
    0
    thx Murph; running your LTSB 64. ran the script with the dvd in drive.
    when done the script says it could not find the source.
    script did point to the correct dvd drive.
     
  8. MonarchX

    MonarchX MDL Expert

    May 5, 2007
    1,732
    313
    60
    So does this work? Should I use it, even though my OS is fine?
     
  9. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    My LTSB 64? The privacy LTSB N x64 version I made?
    I made it very clear that it had stuff removed from it.
    It's not repairable.
     
  10. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    You have to have your image mounted if you don't want it to use online repair.
    Online repair is only there as a last-ditch effort.
    It almost never works.
     
  11. robsinbc

    robsinbc MDL Junior Member

    Apr 5, 2014
    54
    20
    0
    hi Murph .. not the LTSB privacy. this one .. Windows 10 Enterprise 2015 LTSB 10240. 2015-08-06 10:57:10
    english 64.
    tried with mounted iso and also with the dvd.
    thx
     
  12. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    Very rarely it comes across an issue that simply isn't repairable.
    It happens sometimes. Make sure that it mentions that it's using the image.
    If it says that, and it still fails, your best option is to re-install.

    It's MS's installer problem, not the image.
     
  13. genenioo

    genenioo MDL Addicted

    Oct 9, 2007
    654
    113
    30
    I used the original DVD and pointed to it with this command: dism /online /cleanup-image /restorehealth /source:WIM:F:\sources\install.wim:1 /LimitAccess ('F' where DVD was). That counts as mounted, doesn't it?
     
  14. genenioo

    genenioo MDL Addicted

    Oct 9, 2007
    654
    113
    30
  15. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    Yes. There's no reason the script shouldn't have done the exact same thing.
     
  16. Edwe

    Edwe MDL Member

    Sep 1, 2011
    152
    10
    10
    Worked like a charm:p
    Tnx murphy
     
  17. Edwe

    Edwe MDL Member

    Sep 1, 2011
    152
    10
    10
    It couldnt find the source files.

    Have you mounted the iso or had it in the dvd drive?
     
  18. Xaxa

    Xaxa MDL Novice

    Jun 9, 2010
    49
    11
    0
    Mounted to virtual drive. The iso is found as the index selection shows what version of windows it is.