Jump to content

DISM.exe repair source to windows update

Stellar Ray

Hello,

What is the command line for setting Windows Update as DISM.exe repair source?

This? - DISM.exe /Online /Cleanup-Image /RestoreHealth /Source / WindowsUpdate 

Link to comment
Share on other sites

Link to post
Share on other sites

Quote

DISM.exe /Online /Cleanup-image /Restorehealth


Important: When you run this command, DISM uses Windows Update to provide the files that are required to fix corruptions. However, if your Windows Update client is already broken, use a running Windows installation as the repair source, or use a Windows side-by-side folder from a network share or from a removable media, such as the Windows DVD, as the source of the files. To do this, run the following command instead:

 

DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess


Note: Replace the C:\RepairSource\Windows placeholder with the location of your repair source. For more information about using the DISM tool to repair Windows, reference Repair a Windows Image.

From: https://support.microsoft.com/en-us/help/929833/use-the-system-file-checker-tool-to-repair-missing-or-corrupted-system

AMD Ryzen 5800XFractal Design S36 360 AIO w/6 Corsair SP120L fans  |  Asus Crosshair VII WiFi X470  |  G.SKILL TridentZ 4400CL19 2x8GB @ 3800MHz 14-14-14-14-30  |  EVGA 3080 FTW3 Hybrid  |  Samsung 970 EVO M.2 NVMe 500GB - Boot Drive  |  Samsung 850 EVO SSD 1TB - Game Drive  |  Seagate 1TB HDD - Media Drive  |  EVGA 650 G3 PSU | Thermaltake Core P3 Case 

Link to comment
Share on other sites

Link to post
Share on other sites

And like @Robchil said don't forget to fun sfc /scannow after.  

AMD Ryzen 5800XFractal Design S36 360 AIO w/6 Corsair SP120L fans  |  Asus Crosshair VII WiFi X470  |  G.SKILL TridentZ 4400CL19 2x8GB @ 3800MHz 14-14-14-14-30  |  EVGA 3080 FTW3 Hybrid  |  Samsung 970 EVO M.2 NVMe 500GB - Boot Drive  |  Samsung 850 EVO SSD 1TB - Game Drive  |  Seagate 1TB HDD - Media Drive  |  EVGA 650 G3 PSU | Thermaltake Core P3 Case 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Robchil said:

you create a new boot cd with windows install media creation tool. and use the .wim on that i guess as source if you want to use a fresher media. 

https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image

 

remember to run sfc /scannow after you restore health. 

 

I already have windows 10 installation media on USB, a different version or OS build than the current one using, but I get return msg, 'The source files could not be found' after scan.

According to the link, in the Fix Windows 10 image recovery, the command line is the following - DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim

And instructed to replace 'D' with the corresponding ISO mount, so I changed it according to the USB drive letter.

What did I miss?

 

Link to comment
Share on other sites

Link to post
Share on other sites

14 minutes ago, Stellar Ray said:

I already have windows 10 installation media on USB, a different version or OS build than the current one using, but I get return msg, 'The source files could not be found' after scan.

According to the link, in the Fix Windows 10 image recovery, the command line is the following - DISM /Online /Cleanup-Image /RestoreHealth /Source:D:\Sources\install.wim

And instructed to replace 'D' with the corresponding ISO mount, so I changed it according to the USB drive letter.

What did I miss?

 

so if you go to D:\source and type dir *.wim it lists your wim? 

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Robchil said:

so if you go to D:\source and type dir *.wim it lists your wim? 

Via list partition in the command prompt? 

Drive D doesn't have any windows installed, nor USB install media has D letter. How & why D could be the source? Here D is a command function?

How do I list wim?

Link to comment
Share on other sites

Link to post
Share on other sites

that's why you usually just run the commands in an adminmode dosbox while troubleshooting, booting from the USB or DVD.. 

 

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Robchil said:

that's why you usually just run the commands in an adminmode dosbox while troubleshooting, booting from the USB or DVD.. 

 

 

 

Oh I see, the the thought did occur

Link to comment
Share on other sites

Link to post
Share on other sites

48 minutes ago, Robchil said:

that's why you usually just run the commands in an adminmode dosbox while troubleshooting, booting from the USB or DVD.. 

 

 

 

So, I went to Update & security>recovery>advanced startup>troubleshoot>advanced option>command prompt

It says error 50, DISM doesnt support online... something like this.

The command line was exactly - DISM /Online /Cleanup-Image /RestoreHealth /Source:G:\Sources\Install.wim

Tried DISM.exe without ' /online', returns error 84.

Link to comment
Share on other sites

Link to post
Share on other sites

hey.. i'm MCSE, but that just means Must consult someone else.. :D ..

 

you run dsim toward a mounted iso image, to update it, or the drive you have the boot usb in.  to repair older images, like from an installation image created through system center config manager or other auto install programs.  but you should use the rest of the commands to be sure it's the right file, and if it is writable. 

If you use it without source you check your current windows install's wim file.

Quote

Dism /Online /Cleanup-Image /RestoreHealth attempts to fix corrupted system files from Windows Update therefore internet access is required. If you ever encounter problems, you should run sfc /scannow first and if it doesn't succeed, then run Dism /Online /Cleanup-Image /RestoreHealth.

 

Link to comment
Share on other sites

Link to post
Share on other sites

https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image

 

Quote

DISM /Online /Cleanup-Image /RestoreHealth

 

I've always been able to use it from a running install, just make sure to open an admin command prompt and not a user one.

 

I've had cases where an sfc /scannow reported stuff it wasn't able to fix, but after the above it was corrected.

F@H
Desktop: i9-13900K, ASUS Z790-E, 64GB DDR5-6000 CL36, RTX3080, 2TB MP600 Pro XT, 2TB SX8200Pro, 2x16TB Ironwolf RAID0, Corsair HX1200, Antec Vortex 360 AIO, Thermaltake Versa H25 TG, Samsung 4K curved 49" TV, 23" secondary, Mountain Everest Max

Mobile SFF rig: i9-9900K, Noctua NH-L9i, Asrock Z390 Phantom ITX-AC, 32GB, GTX1070, 2x1TB SX8200Pro RAID0, 2x5TB 2.5" HDD RAID0, Athena 500W Flex (Noctua fan), Custom 4.7l 3D printed case

 

Asus Zenbook UM325UA, Ryzen 7 5700u, 16GB, 1TB, OLED

 

GPD Win 2

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×