search replace in registry via command line

Posted on 2004-11-04
Last Modified: 2010-04-14
I need a command line utility that will search the registy for a value and then change the data for the value.


Search registry for LVCAM_Mirror_Y which is set to 0 and I want to set it to 1,  where ever that particular value is in the registry I want to set the value to 1.

I do not want to have to know where it is I just want to do a search/replace.


Question by:rjohnsonjr
    LVL 10

    Accepted Solution


    You can also type reg.exe /? in a dos box.
    This tool can help you but you need to know where your data is stored.
    LVL 1

    Expert Comment

    There's a utility provided on the Windows 2000 Resource Kit CD, and maybe even available for download from the Windows 2000 Resource Kit website, that you can use for searching the Registry to display any matching keys or values.
    LVL 1

    Expert Comment

    Forgot to mention...

    Once found, you could use the FIND command (internal command of CMD) to find lines matching what you're looking for.  At this time, I'm not certain if the registry search tool from the ResKit CD has output options to make it easy to use a batch file, or similar, to generate an appropriate Registry file to make the change.

    If you need to delete a specific key in the Registry, prepend the name with a minus (-), ie:

    Or for values:
    LVL 6

    Author Comment

    Thanks I will get these tested today or monday and let you know how it goes.  Thank  you for being so thorough :-)


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    This post first appeared at Oracleinaction  ( Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    759 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

    10 Experts available now in Live!

    Get 1:1 Help Now