Convert Client Setting Data to Hex and Write to Registry

I’m afraid I can’t dedicate time on it at the moment, but I’d check whether the ‘reg add’ command does any of that encoding for you; and if it needs to be done in Relevance directly, this tip may help you get started Strings, Hexadecimal, and ASCII Values