PC Review


Reply
Thread Tools Rate Thread

automating HD checks

 
 
Christos Kritikos
Guest
Posts: n/a
 
      18th Aug 2004

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

 
Reply With Quote
 
 
 
 
Mark V
Guest
Posts: n/a
 
      18th Aug 2004
In microsoft.public.win2000.cmdprompt.admin Christos Kritikos wrote:

>
> 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.
 
Reply With Quote
 
DLN
Guest
Posts: n/a
 
      31st Aug 2004
"Christos Kritikos" <(E-Mail Removed)> wrote in
news:0c1001c484b7$74056a10$(E-Mail Removed):

>
> 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/fr...shutdown.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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XP pro: chkdsk checks D drive, finds no errors, but then checks it again at next boot RE Windows XP General 0 31st Aug 2006 02:00 AM
Price checks spanna General 4 10th Nov 2005 07:56 AM
Value Checks =?Utf-8?B?U2ltb24=?= Microsoft Access Form Coding 3 6th Jul 2005 05:04 PM
HOW DO I SET UP A DB TO LET ME KNOW WHEN CHECKS ARE DUE =?Utf-8?B?ZGVs?= Microsoft Access Getting Started 2 30th Oct 2004 08:19 PM
printing checks esslingerdav \(removethis\) @fssd.org Microsoft Excel Worksheet Functions 1 15th Apr 2004 05:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:38 PM.