Solved

How can I set chkdsk with REG ADD command?

Posted on 2008-10-27
10
341 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
 

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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

864 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now