From admin prompts
sfc /scannow
Dism /Online /Cleanup-Image /RestoreHealth
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}
Reinstall
If all else fails, you just might have to reinstall Windows 10.
First, make sure you’ve got an up-to-date backup. If not, copy the contents of your library folders to an external hard drive. You probably won’t need it, but it’s best to be safe.
Press Winkey-L to log out of Windows. Click the the welcome screen to get to the login screen. Click the power button in the lower-right corner, then hold down Shift as you select Restart.
This brings you to the Recovery environment. Select Troubleshoot > Reset this PC > Keep my files and follow the onscreen directions.
When it’s over, you’ll have to reinstall all of the programs that didn’t come with Windows.