Start a conversation

KB0603151154 - How to add registry keys using Fusion Device Manager v1.6.x

How to Add Registry Keys Using Fusion Device Manager v1.x

There will be times when you wish to add a series of registry keys to your Windows Embedded terminal. You can of course do it manually from the terminal's administrator login, but it is a lot easier to do it using Fusion Device Manager.

*** WARNING ***

Manipulation of the Windows Registry requires the appropriate amount of knowledge and carries risks. Do not attempt this on a production device until after thoroughly testing it on a labv sample.

There are two methods of performing this task:

Method 1 - Using PowerShell

The first step is to write the Powershell script containing the various keys you wish to add. The added advantage of using PowerShell is that you can also remove keys from the Registry.

An example script is here:


if(Test-Path'HKLM:\Software\ACME'-erroraction silentlycontinue){ "Registry key HKLM:\Software\ACME already exists."}else{md HKLM:\Software\ACME} if(Test-Path'HKLM:\Software\ACME\MySampleKey'-erroraction silentlycontinue){"Registry key HKLM:\Software\ACME\MySampleKey already exists."}else{md HKLM:\Software\ACME\MySampleKey} if(Get-ItemProperty-Name"Version"-path'HKLM:\Software\ACME\MySampleKey'-erroraction silentlycontinue){"Registry key HKLM:\Software\ACME\MySampleKey\Version already exists."}else{New-ItemProperty"HKLM:\Software\ACME\MySampleKey"-Name"Version"-Value'1.0'-PropertyType"String"}


 

This method checks to see if the key is already present to avoid errors.

Once the .ps file is created, you need to import it into the Fusion Library

Now perform the following steps using a Fusion task:

  1. Disable FBWF
  2. Reboot Device
  3. Image Management > Deploy command to deploy the .ps file to the Ramdisk Z:\
  4. Interact > Command with the following: c:\windows\system32\powershell.exe z:\{filename.ps} -force
  5. Enable FBWF
  6. Reboot

Your registry keys should have imported into the Windows registry.

Method 2 - Using the REG Command

This is a simpler method of importing and uses a .REG file.

So first, create the .REG file and then import it into the Fusion Library

Now follow the steps below:

  1. Disable FBWF
  2. Reboot
  3. Image Management > Deploy command to deploy the .REG file to the Ramdisk Z:\
  4. Interact > Command with the following: reg import {z:\{filename.reg}
  5. Enable FBWF
  6. Reboot

The registry file will be imported into the Windows registry.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Tony Tarnowski

  2. Posted
  3. Updated

Comments