Change Registry Key using Batch file

Posted on 2007-12-03
Last Modified: 2012-08-14
Hi All

I need to change a registry key on XP using a batch file from 1 to 0, the key is located in


Question by:http://
  • 4
LVL 32

Expert Comment

ID: 20401428
LVL 32

Accepted Solution

and235100 earned 500 total points
ID: 20401436
Of course - you will have to do this as a logon script - as HKCU doesn;t exist unless a user is logged in.

reg add HKCU\SOFTWARE\MY_APP\SETTINGS /v changethiskey /t key type /d data value /f
LVL 32

Expert Comment

ID: 20401440
LVL 32

Expert Comment

ID: 20401741
Glad that I could help.
Thank you.
LVL 19

Author Comment

ID: 20401800
Thank you for your prompt case someone stumbles over this question the  command is as follows 'with correct arguments'

reg add HKCU\SOFTWARE\MyProg\DebugLog /v LogMCU /t REG_DWORD /d 0 /f'

Featured Post

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.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
some keys in my laptop is not working. any suggestion 6 47
Using Third Party DLL with Access VBA 14 50
incorrect syntax near the order by 10 56
No IP Address Assigned to VM 10 82
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

679 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