Solved

Export / Import binary value in registry

Posted on 2013-06-14
2
426 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
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

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

Title # Comments Views Activity
how to pick only current date files from a ftp 14 53
Script to copy a folder to multiple folders 2 37
User profile Size Report 3 63
IE 11 + long running scripts 3 27
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 …
Background Still having to process all these year-end "csv" files received from all these sources (including Government entities), sometimes we have the need to examine the contents due to data error, etc... As a "Unix" shop, our only readily …
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…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

932 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

10 Experts available now in Live!

Get 1:1 Help Now