Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-26
9
Medium Priority
?
1,857 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
ID: 21874694
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
ID: 21874922
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
ID: 21875002
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:lucavilla
ID: 21876129
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
ID: 21878720
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
ID: 21878856
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
ID: 21878965
I didnt't tested fsutil on Vista
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
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 …
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

972 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