Solved

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

Posted on 2014-11-20
2
132 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In this article we want to have a look at the directory attributes which are used by Microsoft to store the so called Security Identifiers (SID). These SIDs plays an important role in delegating and granting permissions and in authentication of trus…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
A short film showing how OnPage and Connectwise integration works.

948 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

17 Experts available now in Live!

Get 1:1 Help Now