Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Disk Check

12 Apr 2012   #70

64-bit Windows 10 Pro

Hello Muddy, and welcome to Seven Forums.

You might see if this may work for you better, but you must right click on it and click on Run as administrator. If you like you could create a shortcut of the BAT, and use OPTION FIVE in the tutorial below to have the shortcut always run as administrator to use in Task Scheduler.

Run as Administrator

echo y|chkdsk C: /f /r
shutdown /r /f /t 00
Hope this helps,

My System SpecsSystem Spec
12 Apr 2012   #71

Windows 7 Pro x64

Hi Shaun, and thank you for such a swift reply.

I have done as you suggested, namely: I have created a shortcut to the batch file. I have told the shortcut to run as administrator. I have added the /f and /t arguments that you suggested to the shutdown command in the batch file. Finally, I have copied the shortcut file name, together with path, to the scripts/programme field in the Actions tab of Task Scheduler.

Result: the task operates seamlessly. Only problem: it doesn’t do a chkdsk!!! It just reboots the computer .

When I look in the history tab, I see the following entries (and I am translating, roughly, from French):
  • the Task Scheduler launched the instance {de41ac55-dfc6-492b-92ad-f918e9400875} of the task \Check Disk for <Username>
  • the engine for task S-1-5-21-1868736425-1749135435-1172674007-1001:<Computername>\<Username>:S4U:Highest, received a message from Task Scheduler asking to launch the task \Check Disk
  • the task scheduler started the task {de41ac55-dfc6-492b-92ad-f918e9400875}
  • it launched the action (here it quotes the path and filename of my shortcut) in the instance {de41ac55-dfc6-492b-92ad-f918e9400875} of the task \Check Disk
  • it launched the task \Check Disk , instance C:\Windows\System32\cmd.exe, with the ID of Process 5012
  • it terminated the task \Check Disk, instance {de41ac55-dfc6-492b-92ad-f918e9400875}, action C:\Windows\System32\cmd.exe, with a return code of 0
  • it terminated the instance {de41ac55-dfc6-492b-92ad-f918e9400875} of \Check Disk for <Username>.

Which all sounds very fine . But as I say, alas, it hasn’t done the ChkDsk

Thanks so much for getting me this far.

But what am I still doing wrong???

My System SpecsSystem Spec
12 Apr 2012   #72

64-bit Windows 10 Pro


I'm afraid I have no idea either, but you might check to see if you set up the task using the tutorial below to run the BAT file elevated.

Elevated Program Shortcut without UAC Prompt - Create
My System SpecsSystem Spec
12 Apr 2012   #73

Windows 7 Pro x64

Well, thanks again Shawn (sorry for misspelling your name in my previous post) for a very swift reply.

Unfortunately, after following your suggestion to rebuild the chkdsk scheduled task and then create a shortcut to it as prescribed in your page you directed me to, I still got only a reboot :-(

However, I have noticed that when the cmd.exe window briefly opens to execute my batch file, the ChkDsk question "Would you like to schedule this volume to be checked the next time the system restarts?" is asked three times, each time without a reply. Could this absence of an affirmative reply be the reason why ChkDsk does not execute at restart???

Once again, thanks for all your help, and don't worry should you be unable to help me any further.

My System SpecsSystem Spec

12 Apr 2012   #74

Windows 7 Pro x64


The problem was a really silly thing. The one command I never really understood in my batch file was Echo y|. I've just realised it means give the answer Y to the question "Would you like to schedule this volume to be checked the next time the system restarts?"

My old computer had Windows in English, my new one is in French. The French for Yes is Oui, and so the first two words should read Echo O|.

Silly me! But thanks for all your help.

My System SpecsSystem Spec
12 Apr 2012   #75

64-bit Windows 10 Pro

LOL, well I'm happy to hear that it turned out to just be something as simple as that.
My System SpecsSystem Spec
13 Apr 2012   #76

Windows 7 Pro x64

And thanks again for putting me onto the Run as Administrator thing, and hence the need to use a shortcut to my batch file, with the shortcut set to always Run as Administrator. Problem fixed!
My System SpecsSystem Spec
14 Apr 2012   #77

Win7 Ultimate x64 SP1 / WCP x64 / Ubuntu 11 x64

You should make a tutorial on how to run chkdsk with a Windows 7 DVD.
My System SpecsSystem Spec
14 Apr 2012   #78

64-bit Windows 10 Pro

Hello Ken,

That's what the "command prompt at startup" option in step 1 of OPTION TWO is for.
My System SpecsSystem Spec
23 Apr 2012   #79

windows 7 home 64bit

Hello Shawn,
I read an earlier post of yours where you said that 'scandisk' was now just chkdsk. That is good to know as I was searching for scandisk, and wondered why I could not find it. I also saw that you suggested sfc /scannow Is this not scandisk?

Also relevant here, is that I recently did a chkdsk, on my (now external) xp drive, which advised me that I had no errors, but today I downloaded and used the sysinternals "disk check" which reported 11 errors, including not being able to read the 'system volume information'. I take this as being more accurate, as I have tried 2 different programs to image this xp drive, and both times it has failed to complete either by being unable to read from the disk, or because of a "117 I/O error". I do not know what a 117 error is, and this drive was working perfectly in my xp machine 2 months ago.
This disk check looks to be unable to fix any errors, which makes it rather useless

What can you suggest I use to scan and rectify this? I used to use scandsk /r, but that seems to no longer be an option. What will sfc do?

My System SpecsSystem Spec

 Disk Check

Thread Tools

Similar help and support threads
Thread Forum
Raid array error, disk not accessible for check disk?
Hi everyone. Going crazy with this. So about 2 weeks ago, my "intel rapid storage technology" software gave me an error. I opened it and saw that one of the disks (2 disk array) in my Raid 0 array, had an error. I reset it back to normal and left it. Then I started to get pop ups saying that...
Hardware & Devices
Frequent Freezes, BSOD, Disk Check auto cancels, and Hard Disk Errors
Hello! So I recently installed Windows 7 Home Premium on an Acer Aspire 5349. I've been having a bunch of issues with it since the install. Firstly, When I boot, it takes me to the "Disk Check" screen and tells me that one of my disks needs to be checked for consistency. However, the disk in...
BSOD Help and Support
Windows 7 No Disk Space after Disk Check Cancellation
Hey Guys, I've been pulling my hair out trying to figure out what my problem is. Basically, we had an issue with the computer and so we force restarted it at one point about a month ago. After that, we started getting requests to run a check disk after every time the computer was rebooted. The...
General Discussion
Check disk failing, disk read errors, blue screen, computer going slow
As of late my PC has been going very slow, stuttering, freezing for a minute occasionally, and sometimes when I restart I get a disk read error that requires me to turn the PC off and on again. I ran check disk using command prompt, it got to 12% before it said it had found corrupt files, now it...
General Discussion
Disk check could not be performed because windows cannot access disk
HI, i have a Transcend StoreJet 25M 640GB external hardisk, at first it was working properly until a time that it wont open. at first it will ask me to format the disk to be able to open it or sometimes it will say ” NOT accessible : the parameter is incorrect” i did some searching and i learned...
Hardware & Devices

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 07:37.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App