Solved

Export / Import binary value in registry

Posted on 2013-06-14
2
456 Views
Last Modified: 2013-07-03
Hey

I have to export:

HKCU\Software\Appv1\Key1\BinaryValue

And import it to:

HKCU\Software\Appv2\Key1\BinaryValue

Howto? (using commandline/WMI/VBScript.. what ever automatically)

Thanks in advance

Michael
0
Comment
Question by:mikeydk
[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 10

Assisted Solution

by:rjanowsky
rjanowsky earned 250 total points
ID: 39247045
Start with this powershell script fragment and adapt to your needs:
$value1 = (Get-ItemProperty HKCU:\Software\Appv1\Key1).BinaryValue
Set-ItemProperty -path HKCU:\SOFTWARE\Appv2\Key1 -name BinaryValue -value $value1

Open in new window

0
 
LVL 14

Accepted Solution

by:
ThomasMcA2 earned 250 total points
ID: 39248754
You should be able to do that with a single line of code using REG COPY:

REG COPY HKCU\Software\Appv1\Key1\BinaryValue HKCU\Software\Appv2\Key1\BinaryValue

Open in new window

0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Utilizing an array to gracefully append to a list of EmailAddresses
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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