Schedule Scandisk to run automatically
Hi, I'm looking for help in how I can have my Win 7 PC awaken from sleep mode, schedule scandisk, reboot and run scandisk (fix errors and locate bad sectors) on all drives. The trouble I have with task sceduler is that the drive is mounted and needs to be unmounted for the activity to happen. I am wanting these time consuming checks to happen during he night when other tasks are scheduled. Thankyou in adavance, Eyesburning
October 7th, 2011 2:45am

Review this old KB.Q179306 Perhaps it will help.
Free Windows Admin Tool Kit Click here and download it now
October 7th, 2011 8:09am

Windows 7 does not have Scandisk, it has Check Disk (chkdsk.exe). Here's a list of switches that can be used with chkdsk.exe to perform the desired set of tasks: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/chkdsk.mspx?mfr=true Use the /x switch to force dismount the volume. After that, use the /f and /r switch to fix errors and recover data from bad sectors. So, schedule a task to run the script: chkdsk [volume:][[Path] FileName] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:size]] This will ensure that the Check Disk dismounts the volume and then performs the task automatically. Please revert back here if you have any further queries or if this solution does not meet your requirement. Hope it helps! Kunal D Mehta - a Windows Server Enthusiast | I'm on facebook.com/serverbaba
October 7th, 2011 10:08am

Windows 7 does not have Scandisk, it has Check Disk (chkdsk.exe). Here's a list of switches that can be used with chkdsk.exe to perform the desired set of tasks: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/chkdsk.mspx?mfr=true Use the /x switch to force dismount the volume. After that, use the /f and /r switch to fix errors and recover data from bad sectors. So, schedule a task to run the script: chkdsk [volume:][[Path] FileName] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:size]] This will ensure that the Check Disk dismounts the volume and then performs the task automatically. Please revert back here if you have any further queries or if this solution does not meet your requirement. Hope it helps! Kunal D Mehta - a Windows Server Enthusiast | I'm on facebook.com/serverbaba
Free Windows Admin Tool Kit Click here and download it now
October 7th, 2011 5:04pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics