Solved

How can I set chkdsk with REG ADD command?

Posted on 2008-10-27
10
345 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 

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

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.

Question has a verified solution.

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

Disclosure: Use this tutorial only when no other options helps to get Windows XP running without any problems and you don't want to format the drive. The back up of the data is the responsible of the user, however there is a description of how t…
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
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…

828 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