Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
In the Windows operating system, maintaining the integrity and health of system files is crucial for ensuring optimal performance and stability. One of the tools provided by Microsoft for this purpose is the Deployment Imaging Service and Management Tool (DISM). The "ScanHealth" option within DISM is particularly useful for detecting corruption within the Windows image. This article will guide you on how to run the ScanHealth command via CMD on Windows, explaining its importance and providing practical examples.
Examples:
Opening Command Prompt with Administrative Privileges:
Before running any DISM commands, you need to open the Command Prompt with administrative privileges. This ensures that you have the necessary permissions to perform system-level tasks.
Windows Key + X
and select Command Prompt (Admin)
or Windows PowerShell (Admin)
from the menu.cmd
in the Start menu, right-click on Command Prompt
, and select Run as administrator
.Running the ScanHealth Command:
Once you have the Command Prompt open with administrative privileges, you can run the ScanHealth command to check for any corruption in the Windows image.
DISM /Online /Cleanup-Image /ScanHealth
/Online
specifies that the command should target the running operating system./Cleanup-Image
is used to manage the system image./ScanHealth
checks for any corruption within the image.This process may take some time, depending on the size of the image and the performance of your system. The command will scan the Windows image for any corruption but will not attempt to fix any issues it finds.
Interpreting the Results:
After the ScanHealth command completes, it will provide a summary of its findings. If no corruption is detected, you will see a message indicating that the component store is repairable. If corruption is found, you will receive a message indicating the presence of issues.
Next Steps if Corruption is Found:
If the ScanHealth command finds corruption, you can proceed with the /RestoreHealth
option to attempt to repair the image.
DISM /Online /Cleanup-Image /RestoreHealth
This command will scan the image for corruption and attempt to repair it using Windows Update. Ensure that your system is connected to the internet so that it can download any necessary files.