Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-1885954632-1506356648-996637233-11986]
"ProfileImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,\
00,69,00,76,00,65,00,25,00,5c,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,\
74,00,73,00,20,00,61,00,6e,00,64,00,20,00,53,00,65,00,74,00,74,00,69,00,6e,\
00,67,00,73,00,5c,00,73,00,77,00,69,00,6e,00,73,00,74,00,61,00,6c,00,6c,00,\
00,00
"Sid"=hex:01,05,00,00,00,00,00,05,15,00,00,00,48,62,69,70,a8,2d,c9,59,31,7a,67,\
3b,d2,2e,00,00
"Flags"=dword:00000000
"State"=dword:00000100
"CentralProfile"=""
"ProfileLoadTimeLow"=dword:dcd1fad3
"ProfileLoadTimeHigh"=dword:01c9e828
"Guid"="{7af97ce6-1ae2-49ce-8c84-ab4b503b16e3}"
"RefCount"=dword:00000000 And this is how it looks after my extraction: Code:
objRegistry.EnumValues HKEY_LOCAL_MACHINE, strKeyPath, arrValueNames, arrValueTypes
For i=0 To UBound(arrValueNames)
objRegFile.Write """" & arrValueNames(i) & """="
Select Case arrValueTypes(i)
Case REG_SZ
objRegistry.GetStringValue HKEY_LOCAL_MACHINE, strKeyPath, arrValueNames(i), strValue
objRegFile.WriteLine """" & strValue & """"
Case REG_EXPAND_SZ ' AKA hex(2)
'objRegistry.GetExpandedStringValue HKEY_LOCAL_MACHINE, strKeyPath, arrValueNames(i), strValue ' Type mismatch here
objRegFile.WriteLine "hex(2):" & strValue
Case REG_BINARY ' AKA hex
'objRegistry.GetBinaryValue HKEY_LOCAL_MACHINE, strKeyPath, arrValueNames(i), strValue ' Type mismatch here
objRegFile.WriteLine "hex:" & strValue
Case REG_DWORD
objRegistry.GetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath, arrValueNames(i), strValue
objRegFile.WriteLine "dword:" & strValue
Case REG_MULTI_SZ ' AKA hex(7)
objRegistry.GetMultiStringValue HKEY_LOCAL_MACHINE, strKeyPath, arrValueNames(i), strValue
objRegFile.WriteLine "hex(7):" & strValue
End Select
Next
Any help much appreciated.