Jump to content

Read Registry Hex value


Recommended Posts


Hi,

I am trying to write a registry value but before that I am exporting the existing value to check what is written.

When I read the HEX value it comes as 0x000000850000020000..... which is not in HEX format.

Could you please let me know how to read this value as HEX format. Also if I write a reg value as Reg_Binary... will it be added as Hex value?

Regread

$Reg = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications", "AppDB")
MsgBox(0, "", $Reg)

Regwrite

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications", "AppDB", "REG_BINARY", "54,25,00,00,0d,00,00,87,09,00,00,00,00,00,00,\  00,00,00,00,00,00,00,00,00,67,00,00,00,00,00,00,00,00,00,00,00,00,00,35,00,\  00,00,00,00,00,00,00,00,00,00,00,00,00,24,00,12")

 

Link to comment
Share on other sites

ok, I got it finally.

We don't have to use the ',' or any special characters while reading or writing a Reg value.

it should be as per below:

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\PushNotifications", "AppDB", "REG_BINARY", "542500000d000087090000000000000000000000000000006700000000000000000000000000350000000000000000000000000000240012")

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...