Solved

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

Posted on 2008-06-26
9
1,852 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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