5

I've got a REG_BINARY registry key that I'd like to set via GPO. However, the GPO interface to add registry settings simply has a 'Value Data' text field.

I can set the type to REG_BINARY, but what format is the text field expecting the data in so that the key is correctly set?

Should I be converting my data to Hex before entering it here, or should I be doing this in a completely different way?

growse
  • 7,830
  • 11
  • 72
  • 114

3 Answers3

3

I've never personally tested it, but according to this example, it should be in Hex format.

Massimo
  • 68,714
  • 56
  • 196
  • 319
  • That link is broken. – Nic Feb 26 '14 at 19:19
  • You're right. Sorry to hear that, I answered this question long ago and it was active. I can't remember the exact details, however the main point was the value had to be entered in Hex. – Massimo Feb 26 '14 at 21:02
  • 1
    That's why it's important to not just post a link as an answer, but rather either quote or rewrite the content here (with reference) as to preserve and spread the knowledge. – suhdo Sep 18 '17 at 09:24
1

You could use a bat file to do it and run is as a start up script

http://technet.microsoft.com/en-us/library/cc742162(WS.10).aspx

Massimo
  • 68,714
  • 56
  • 196
  • 319
Ninja
  • 192
  • 1
  • 6
  • Please consider either quoting or rewriting the answer here on this site instead of strictly just posting a link for an explaination. – suhdo Sep 18 '17 at 09:25
1

I just faced a similar issue. According to an export of the key, the reg-file consists of the following:

"key-value"=hex:01,\
  00,00,00,30,0c,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

In order for the Group Policy Manager to read this data, it should be entered as following. Upper case letter and no commas:

01000000300C000000000000000000000000000000000000
praecox
  • 69
  • 7
  • It's the capitals that made me grit my teeth but in the end I've found that (in my environment at least) case doesn't matter – wunth May 02 '17 at 19:16