The Windows check disk tool will detect bad sectors and mark them as such. This will prevent Windows from using those sectors. Read our guide to see what else you can do to fix bad sectors.