Solved

How to set "chkdsk R: /F" always on boot?

Posted on 2008-06-26
9
1,846 Views
Last Modified: 2013-12-01
The short question is: how do I set Vista to always "chkdsk R: /F" on boot?

I saw that the registry way to do this is to set
HKLM\System\CurrentControlSet\Control\Session Manager\BootExecute  to
autocheck autochk /p \??\R:
autocheck autochk *

For example, what's the best way to perform this registry setting on every startup (so that, as wanted, every following restart is done with the chkdsk during boot)?
0
Comment
Question by:lucavilla
  • 4
  • 2
9 Comments
 
LVL 70

Expert Comment

by:KCTS
Comment Utility
You could create a batch file and put this in the startup folder - I imagine it would become annoying after a short while.
0
 

Author Comment

by:lucavilla
Comment Utility
KCTS, and is there a way to do it via a batch file without any user confirmation every time? does UAC allow this registry change transparently?

If I launch a .REG file from within the batch file it asks user confirmation...
0
 
LVL 2

Expert Comment

by:thefaza
Comment Utility
You can use command:
fsutil dirty set x:
It mark drive as dirty so it force system to autocheck it on next boot tima, You can add this command to autostart or HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:lucavilla
Comment Utility
Unfortunately it seems that both the batch and the fsutil solutions requires user intervention because of the UAC   (and I don't want to disable UAC in general).
Is there a way to bypass UAC only for this specific purpose?
0
 

Author Comment

by:lucavilla
Comment Utility
thefaza, it seems that your command is totally ignored if put in the startup folder. While it works (with UAC user intervention) when double-clicked, it appears to not be launched by Windows automatically. I don't know why...
0
 

Accepted Solution

by:
lucavilla earned 0 total points
Comment Utility
Ok, I solved it by scheduling an automated startup launch of a Regini script from within Automate (a popular macro program)
0
 
LVL 2

Expert Comment

by:thefaza
Comment Utility
I didnt't tested fsutil on Vista
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In this article, I provide some information on storage disks which go into calculations that will help you figure out how much Input/output Operations Per Second (IOPS) your disk subsystem can deliver. To effectively size & tune up applications l…
I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
This video teaches viewers how to encrypt an external drive that requires a password to read and edit the drive. All tasks are done in Disk Utility. Plug in the external drive you wish to encrypt: Make sure all previous data on the drive has been …
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

744 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

17 Experts available now in Live!

Get 1:1 Help Now