VB or Jscript to find and replace registry data

Posted on 2005-04-07
Last Modified: 2010-04-17
Hi all,

I am looking for a script to deploy to 800 computers that will change the following registry install source path:

search the registry for all entries "F:\install\office2000pro"
Replace the entry with "\\servername\install\office2000pro"

Any help would be greatly appreciated. Thanks.
Question by:sirvodka
    1 Comment
    LVL 23

    Accepted Solution

    ok it looks like you will need to use the WSH to search the registry and you can basically use something along the lines of the example on this site :

    The one you are looking for is called "The Registry Search Tool" Which is located near the bottom of the page. Once you have used that to find the entries you then need to re write each entry with what you wanted which was :


    Here are some good references to look at :

    Also look into recursively searching the registry for them values and then from there you can replace each one that is found with what you want or you could even give the user a choice for each time the script thinks it has found one with a message box with a yes or no option to replace it or not.

    Anyway I hope that gets you started and hopefully other experts reply with maybe an exact script to fit your needs but for the mean time that should get you started.

    kind regards


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
    In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
    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…

    745 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

    16 Experts available now in Live!

    Get 1:1 Help Now