ScanDisk, a Microsoft utility, is designed to analyze and repair disks. If you're encountering issues such as inaccessible files or erratic program behavior, running ScanDisk can help diagnose and potentially resolve the problem. This guide will walk you through running ScanDisk on a Windows 10 system.
Steps

Press Win + E
Click on This PC. Find it in the panel on the left side of the window, and it will display the drives under 'This PC' on the right side of the window.

Right-click on the drive where you want to run ScanDisk.

Click on Properties to open another window.

Click on the Tools tab near the top of the window.

Click on Check. This option will be located in the 'Error Checking' section next to an icon of a drive.
