Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB Script to replace all matching binary values under Key in Registry

Posted on 2014-11-20
2
Medium Priority
?
144 Views
Last Modified: 2014-11-20
I'm looking for some assistance in a vb script I'm writing.

I'd a script that can locate all instances of a binary value named 'New Signature'

These binary values are be located within unknown sub keys under key 'HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem'.

I need the code to recursively search through every sub keys and replace when it finds a binary value named 'New signature' it will replace its value with ''hex:28,00,6e,00,6f,00,6e,00,65,00,29,00,00,00"

thanks in advance!
0
Comment
Question by:antonioking
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 71

Accepted Solution

by:
Qlemo earned 2000 total points
ID: 40455301
Is PowerShell an option?
get-childitem -recurse 'HKCU:Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem' |
  get-itemproperty -Name 'New Signature' -ea SilentlyContinue |
  set-itemproperty -Name 'New Signature' -value ([byte[]]@(0x28,0,0x6e,0,0x6f,0,0x6e,0,0x65,0,0x29,0,0,0))

Open in new window

0
 

Author Closing Comment

by:antonioking
ID: 40455320
Oh the wonders of Powershell.

Thank!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Well hello again!  Glad to see you've made it this far without giving up.  In this, the fourth installment of my popular series, I'm going to cover functions and subroutines, what they are, and why they are useful.  Just in case you stumbled onto th…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

660 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