Scheduling Checkdisk to run Automatically.

G

Guest

Having automated Disk cleanup and Defrag succesffully (thanks to this forum)
I need assistance with Checkdisk. I have stumbled across two different
commands to execute it but cannot automate the YES/No option of the Dialog
Box with either of them. These commands are:- chkdsk C: /f /r and chkdsk C:
/R /I /C. Neither of these command lines will automate the "Yes" option so I
can get no further. What I am seeking is the command structure to:
1.Schedule checkdisk (both C: & G: drive - either serially off the one
command or as 2 seperate volume commands) to automatically commence upon
reboot (although G: should not need it) without the need to manually respond
"Yes".
2.Invoke "Automatically Fix File System Errors" and "Scan for and Attempt
Recovery of Bad Sectors" properties for each drive.
I have the reboot command sorted out OK for chkdsk to run out of boot mode
but, at the conclusion of the scan, when Windows is restarted - how do you
defeat the need for password insertion to allow Windows to boot up in Admin
mode? I would gratly appreciate any advice that you may be able to offer.
Bob Deb
 
P

Pegasus \(MVP\)

Bob Deb said:
Having automated Disk cleanup and Defrag succesffully (thanks to this forum)
I need assistance with Checkdisk. I have stumbled across two different
commands to execute it but cannot automate the YES/No option of the Dialog
Box with either of them. These commands are:- chkdsk C: /f /r and chkdsk C:
/R /I /C. Neither of these command lines will automate the "Yes" option so I
can get no further. What I am seeking is the command structure to:
1.Schedule checkdisk (both C: & G: drive - either serially off the one
command or as 2 seperate volume commands) to automatically commence upon
reboot (although G: should not need it) without the need to manually respond
"Yes".
2.Invoke "Automatically Fix File System Errors" and "Scan for and Attempt
Recovery of Bad Sectors" properties for each drive.
I have the reboot command sorted out OK for chkdsk to run out of boot mode
but, at the conclusion of the scan, when Windows is restarted - how do you
defeat the need for password insertion to allow Windows to boot up in Admin
mode? I would gratly appreciate any advice that you may be able to offer.
Bob Deb

The commands

echo Y | chkdsk c: /f
echo Y | chkdsk d: /f
echo Y | chkdsk e: /f
shutdown . . .

will either check all your disks immediately or schedule the
process for the next restart. There is no need to worry about
accounts: If you use the Task Scheduler to run the above
commands under an administrator's account then they will
run without any user intervention.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top