# Is there a way to set a binary registry value?

**URL:** https://www.finalbuilder.com/forums/t/is-there-a-way-to-set-a-binary-registry-value/2306
**Category:** Discussion
**Created:** [September 18, 2014, 1:06am UTC](https://www.finalbuilder.com/forums/t/is-there-a-way-to-set-a-binary-registry-value/2306 "2014-09-18T01:06:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rmcginty](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/rmcginty/32/57_2.png) [@rmcginty](https://www.finalbuilder.com/forums/u/rmcginty)
#### Post date: [September 18, 2014, 1:06am UTC](https://www.finalbuilder.com/forums/t/is-there-a-way-to-set-a-binary-registry-value/2306/1 "2014-09-18T01:06:59Z")

</div>

Registry value type doesn’t include REG\_BINARY.&nbsp; Is there an alternate way to accomplish this?

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [September 18, 2014, 1:43am UTC](https://www.finalbuilder.com/forums/t/is-there-a-way-to-set-a-binary-registry-value/2306/2 "2014-09-18T01:43:57Z")

</div>

Hi Ryan,   
  
 As your most likely already aware FinalBuilder doesn’t have a binary variable type. As a result its currently hard to make sure that a binary value is not altered in some way by the FinalBuilder system. To this end I suggest using a powershell script to alter the registry value in question.   
  
 The powershell script your looking for is;   
  
 Set-ItemProperty -Path . -Name Test -Value ([byte[]](0x33,0x32,0xFF))   
  
 The help on this call is located here:   
  
 [http://technet.microsoft.com/en-us/library/hh849844.aspx](http://technet.microsoft.com/en-us/library/hh849844.aspx)
