?
Solved

Export / Import binary value in registry

Posted on 2013-06-14
2
Medium Priority
?
489 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 1000 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 1000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If like me you are one who spends a lot of time working and scripting with cmd.exe, sometimes it is handy to be able to quickly view a calendar for a given month and year. This script will quickly do just that!  Save the code posted below to a .bat …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

800 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