Solved

Export / Import binary value in registry

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

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

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

Over the years I've spent many an hour playing on hardened, DMZ'd servers, with only a sub-set of the usual GNU toy's to keep me company; frequently I've needed to save and send log or data extracts from these server back to my PC, or to others, and…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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…

690 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