[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

VB or Jscript to find and replace registry data

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.
1 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now