JSI Tip 0058 - How to schedule a CHKDSK on every boot.

Downloads
autoexnt.zip

Create a file, C:\Y.TXT that contains: Y
Create a file C:\CHKBOOT.BAT that contains:

chkdsk C: /F <c:\y.txt or chkdsk C: /F /R <c:\y.txt
exit

If you have a D drive, just add another line, etc..

If you always logon to the server, just put C:\CHKBOOT.BAT in your StartUp group or download AUTOEXNT. This service will execute a batch file during system boot.

You can do this with one file as follows: (Provided by Keith Gorham)

echo y | chkdsk Drive: /f
exit


Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottYou'll have the opportunity to experience:
• The Microsoft
Technology Roadmap
• Office 365 Implementation
• Hyper-V Optimizing
• Windows 8 Deployment
and much more!

Come See Paul Thurrott & Rod Trent in Person!

Early Registration Now Open

Upcoming Training

Mastering System Center 2012

During over 6 hours of training you can join John Savill from your computer as he will walk you through the key components and capabilities of System Center 2012, what’s involved in using the components, and the benefit they can bring to your environment.

Register Now

Current Issue

May 2013 - The NameTranslate object is useful when you need to translate Active Directory object names between different formats, but it's awkward to use from PowerShell. Here's a PowerShell script that eliminates the awkwardness.

CURRENT ISSUE / ARCHIVE / SUBSCRIBE

Windows Forums

Get answers to questions, share tips, and engage with the Windows Community in our Forums.