Solved

Export / Import binary value in registry

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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Recently, an awarded photographer, Selina De Maeyer (http://www.selinademaeyer.com/), completed a photo shoot of a beautiful event (http://www.sintjacobantwerpen.be/verslag-en-fotoreportage-van-de-sacramentsprocessie-door-antwerpen#thumbnails) in An…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
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 this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

760 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

18 Experts available now in Live!

Get 1:1 Help Now