Solved

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

Posted on 2008-06-26
9
1,853 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
Industry Leaders: 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!

 

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

626 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