I am struggling to find a way to automate chkdsk /f on all drives at startup, as so far I couldn't accomplish this task.
- Cannot use chkdsk in a batch file, as it would require user intervention (Y/N prompts in case of locked volumes).
- The "fsutil dirty set " method will not work completely, only the c: drive check will be executed at startup
Any idea?
You can use chkdsk in a batch file by echoing the Y and piping it to chkdsk as follows:
echo Y | chkdsk c: /f