Solved

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

Posted on 2008-06-26
9
1,848 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Question has a verified solution.

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

A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
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…

947 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

21 Experts available now in Live!

Get 1:1 Help Now