Solved

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

Posted on 2014-11-20
2
130 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
2 Comments
 
LVL 68

Accepted Solution

by:
Qlemo earned 500 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

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

Join & Write a Comment

Hello again, all.  For those of you that have been following along, you'll know that this is my third article on this topic (though it is not Part III).  This article is sort of remedial, and probably the topic with which I should have started the s…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

9 Experts available now in Live!

Get 1:1 Help Now