Run these Windows 10 repair commands when you suspect your operating system is unstable or has corrupted functions.
1) Windows integrity check and fix:
sfc /scannow
a) Right click Start and click Run
b) Type cmd and click OK - you can also type CMD in the windows search box and open it as administrator by right clicking it
c) Type
sfc /scannow in the command prompt and hit enter

2) Windows Health Restore:
DISM /Online /Cleanup-Image /RestoreHealth
a) Right click Start and click Run
b) Type Powershell and click OK - you can also type powershell in the windows searchbox and open it as administrator by right clicking it
c) In powershell, type
DISM /Online /Cleanup-Image /RestoreHealth and hit enter.
Note: this will take long time to download and update Windows System Files
Note: If your Windows update is corrupted or don't have access to the internet, use Dism /Online /Cleanup-Image /RestoreHealth /Source:wim:d:sourcesinstall.wim:1 where source is the drive of your Windows installation image.