vITComputing
asked on
script/bat to run chkdsk once and restart
Hi,
I'd like to have chkdsk run on a computer without any user interaction.
I'd like to run chkdsk to fix all errors on the c: drive.
Then I'd like to restart the comptuer and have the chkdsk run.
Then I'd like windows to start up.
Any suggestions how I can do this?
I think what I'm looking for is a registry edit that I can schedule a chkdsk/autochk to run only ONCE during the next startup. then I can create a reboot at a certain time.
thanks!
I'd like to have chkdsk run on a computer without any user interaction.
I'd like to run chkdsk to fix all errors on the c: drive.
Then I'd like to restart the comptuer and have the chkdsk run.
Then I'd like windows to start up.
Any suggestions how I can do this?
I think what I'm looking for is a registry edit that I can schedule a chkdsk/autochk to run only ONCE during the next startup. then I can create a reboot at a certain time.
thanks!
ASKER
That still requires user interaction of y/n.
I am aware of the shutdown.exe, and I do plan on using that as soon as I can schedule a chkdsk/autochk to run ONCE during startup.
Thanks.
I am aware of the shutdown.exe, and I do plan on using that as soon as I can schedule a chkdsk/autochk to run ONCE during startup.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi vITComputing,
is this of any assistance?
http://support.microsoft.com/kb/218461
Hope this helps,
Alan
is this of any assistance?
http://support.microsoft.com/kb/218461
Hope this helps,
Alan
ASKER
the echo command worked. What the difference between the /f and the /x parameter?
Thanks!
Thanks!
ASKER
Does the chkdsk also write to a log file somewhere or maybe the event log?
Thanks
Thanks
/x forces a volume dismount and implies /f
Yes - eventlog
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try it with:
chkdsk c: /x
There is a shtudown.exe that will allow you to schedule the reboot...