The instructions apply to Windows 11, Windows 10, Windows 8, Windows 7, and Windows Vista.
For the sfc /scannow command to work properly, it must be executed from an elevated Command Prompt window.
key in the following command and then pressEnter.

System File Checker will now verify the integrity of every protected operating system file on your system.
It might take a while to finish.
reboot your computerif sfc /scannow repaired files.

Repeat whatever process caused your original problem to see if sfc /scannow resolved it.
What Is SFC /Scannow?
Sfc /scannow will inspect all of the important Windows files on your rig, including Windows DLL files.
If System File Checker finds a problem with any of these protected files, it will replace it.
Browse for folders in Command Prompt with thedir command.
FAQ
You should only need to run sfc/scannow when you notice a problem.
Running the command once should be sufficient.
Run sfc /scannow before you initiate the dism command.
That way, the dism command can correct problems identified by sfc /scannow.