Hi,

What am I doing wrong here ? I want to write hexadecimal to the reg key "HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo" on subkeys "Company" and "UserName" the value "AAA".

It doesn't write it hexadecimal but in a unknown value (false characters) !

$rc=WriteValue
("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo","UserName",AAA,"REG_BINARY")
$rc=WriteValue("HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Common\UserInfo","Company",AAA,"REG_BINARY")

Thanks !