Solved

How can I set chkdsk with REG ADD command?

Posted on 2008-10-27
10
344 Views
Last Modified: 2012-06-27
When I try to set a chkdsk from a simple batch file or from a command console with this command: REG ADD HKLM\SYSTEM\CurrentControlSet\Control\Session Manager v/BootExecute /t REG_MULTI_SZ /d autocheck autochk /r \??\C: autocheck autochk * --- I get the error message. Something must be wrong in my assumptions or syntax...any ideas?
0
Comment
Question by:whaulma
  • 6
  • 3
10 Comments
 
LVL 7

Expert Comment

by:maze-uk
ID: 22813807
sorry, what error message?
0
 

Author Comment

by:whaulma
ID: 22814355
Too many command-line parameters
0
 
LVL 22

Expert Comment

by:orangutang
ID: 22814605
Maybe add "autocheck autochk /r \??\C: autocheck autochk *" in quotes?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:whaulma
ID: 22814962
no, same error.....
0
 

Author Comment

by:whaulma
ID: 22815322
could it be that i need to enter the binary value.....i can get a .reg file to wor but the command line would be cleaner.....
0
 
LVL 22

Expert Comment

by:orangutang
ID: 22818823
Try this:
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t "REG_MULTI_SZ" /d "autocheck autochk /r \??\C: autocheck autochk *"
I put everything in quote. Also, I think it should be "/v BootExecute" not "v/BootExecute"
0
 

Author Comment

by:whaulma
ID: 22824840
still the error.....very interesting. i can't find this anywhere and i can't be the only one who ever had this issue, but no one appears to have logged this anywhere that i know of.....
0
 
LVL 22

Accepted Solution

by:
orangutang earned 250 total points
ID: 22827817
Hmm, I tested it and it kind of works but it asks if I want to overwrite it. I didn't go any further because I didn't get the error:
https://filedb.experts-exchange.com/incoming/ee-stuff/7346-test.zip
0
 

Author Comment

by:whaulma
ID: 22830938
ok..compared the command line you sent to the one i typed in to be sure that i hadn't fat-fingered something but it matches....i'm running this from system32...that could be the issue...?? i'll test
0
 

Author Comment

by:whaulma
ID: 22840577
well, that straw blew past. are you testing on XP as part of an enterprise domain? about the only thing left is a glitch in a security policy i've stumbled on....you should have gotten the prompt to overwrite, that's correct so, proof of concept....just doesn't work for me.....cheers, i have to move on now as i have a work-around for this situation....
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

809 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