Solved

Need to setup CHKDSK /f /r as a scheduled task

Posted on 2006-07-07
7
1,539 Views
Last Modified: 2012-06-22
In my company's network, I have all 120 of my XP Workstations on a weekly reboot and defrag schedule using scheduled tasks.  I have this pushed out through a Group Policy login script that runs a batch file which creates the scheduled tasks and runs them under the System account.  It has been working well.

I would like to add Chkdsk to this automatic weekly maintenance as well.

Is there a way I can run a .bat file that will run "chkdsk c: /f /r" AND confirm yes to run it upon reboot when it asks:  "Chkdsk cannot run because the volume is in use by another precess. Would you like to schedule this volume to be checked the next time the system restarts?"
0
Comment
Question by:ES13Raven
  • 2
  • 2
7 Comments
 
LVL 1

Expert Comment

by:Mark Skrodzki
Comment Utility
Hi ES13Raven,

Have you tried, "chkdsk c: /f/r/y" in your bat file?

Cheers!
0
 

Author Comment

by:ES13Raven
Comment Utility
Yes, you get an "invalid parameter - /y" so it doesn't work
0
 

Author Comment

by:ES13Raven
Comment Utility
Found it:

echo y|chkdsk c: /f /r
0
 
LVL 1

Expert Comment

by:Mark Skrodzki
Comment Utility
ES13Raven,

Great find!!!

skrodzkim
0
 
LVL 5

Accepted Solution

by:
Netminder earned 0 total points
Comment Utility
Closed, 250 points refunded.
Netminder
Site Admin
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now