Run Powershell from Command prompt.
Step 1: Open the Command Prompt, and type the PowerShell as a command, then press Enter key. Step 2: Now, the command prompt will turn to Windows PowerShell. Step 3: Type the command start-process PowerShell -verb runas and press "enter" key. Step 4: It will bring up an elevated Windows PowerShell as an administrator.
To repair file corruption using DISM and SFC, run in the order below:
Sfc /scannow
Dism /Online /Cleanup-Image /CheckHealth
Dism /Online /Cleanup-Image /ScanHealth
Dism /Online /Cleanup-Image /RestoreHealth
Also try this:
Run chkdsk /r to repair any disk level damage
Run Dism /Online /Cleanup-Image /RestoreHealth to repair corrupt image/reboot
Run sfc /scannow to repair files/reboot
Also try this order:
1) Dism.exe /online /Cleanup-Image /StartComponentCleanup
2) sfc /scannow
3) Dism /Online /Cleanup-Image /RestoreHealth
4) sfc /scannow
5) re-register all appx pakages
Get-AppXPackage | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
***************************
From WinPE environment
Dism /Image:c: /Cleanup-Image /RestoreHealth uses Windows update to repair image _
+++++++++++++++++++++
The CheckHealth option with the Deployment Image Servicing and Management command tool allows you quickly determine if there are any corruptions inside the local Windows 10 image. However, the option does not perform any repairs.
DISM /Online /Cleanup-Image /CheckHealth
The ScanHealth option performs a more advanced scan to determine if the OS image has any problems.
DISM /Online /Cleanup-Image /ScanHealth
**************************************
To repair an offline image: Dism /Image:E: /Cleanup-Image /RestoreHealth.
To use a different repair source: Dism /Online /Cleanup-Image /RestoreHealth /Source:d:\test\mount\windows.
+++++++++++++++++++++++
Xcopy source destination /s /e /h /c