automating HD checks

  • Thread starter Thread starter Christos Kritikos
  • Start date Start date
C

Christos Kritikos

Hi,

I am trying to run HD checks on a Win2K Server computer.
The manual approach that I follow is to
a. run "chkdsk [drive] /f /r"
b. answer "No" to the question if I want to dismount the
volume (if the question pops up)
c. answer "Yes" to the question if I want to run disk-
check at the next startup
d. reboot the computer

My problem is that I would like to periodically run
chkdsk automatically (ie once a week at 3:00am). Is there
a way I can do this and/or to automate the above process?

thanks
christos
 
In said:
Hi,

I am trying to run HD checks on a Win2K Server computer.
The manual approach that I follow is to
a. run "chkdsk [drive] /f /r"
b. answer "No" to the question if I want to dismount the
volume (if the question pops up)
c. answer "Yes" to the question if I want to run disk-
check at the next startup
d. reboot the computer

My problem is that I would like to periodically run
chkdsk automatically (ie once a week at 3:00am). Is there
a way I can do this and/or to automate the above process?

CHKNTFS.EXE /?

Wrap that and a shutdown.exe command in a batch and schedule it
perhaps.
 
Hi,

I am trying to run HD checks on a Win2K Server computer.
The manual approach that I follow is to
a. run "chkdsk [drive] /f /r"
b. answer "No" to the question if I want to dismount the
volume (if the question pops up)
c. answer "Yes" to the question if I want to run disk-
check at the next startup
d. reboot the computer

My problem is that I would like to periodically run
chkdsk automatically (ie once a week at 3:00am). Is there
a way I can do this and/or to automate the above process?

thanks
christos

The command to initiate the check follows:

echo y|chkdsk c:/f
echo y|chkdsk d:/f

Then you need to have an installed "shutdown" command. I don't recall if
2000 has one (you may need to get it from Microsoft.com) but I use
Psshutdown.exe (free,
http://www.sysinternals.com/ntw2k/freeware/psshutdown.shtml). Issue a
command like the following:

c:\[path to system32 folder]\psshutdown.exe -r

Save all the text command to a text file named checkdisk.bat and then use
the add scheduled task wizard in scheduled tasks to set a date and time to
run.
 
Back
Top