I want to export the registry key. It is key, Binary
If export from registry editor It will be binary
"UxdRegData"=hex:93,cb,97,66
But, when using this code
$regAddress = 'HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT'
$regKey = 'UxdRegData'
$regOBM = 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT'
$regPath = RegRead($regAddress,$regKey)
$file = FileOpen(@DesktopDir & '\OBM1.8.reg',2)
FileWrite($file,'Windows Registry Editor Version 5.00' & @CRLF & @CRLF _
& '[' & $regOBM & ']' & @CRLF _
& '"' & $regKey & '"="' & $regPath &'"')
FileClose($file)
OBM1.8.reg file represented as
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT]
"UxdRegData"="0x93CB9766
It is not a binary code
Who can help me please
Sorry for not good English