Solved

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

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

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Welcome, welcome!  If you are new to the series and haven't been following along, please take a brief moment to review the first three installments: Part 1 (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/A_266-VBScri…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

735 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