converting multi string value (binary) to text

  • Thread starter Thread starter Bob Speer
  • Start date Start date
B

Bob Speer

I am collecting a value that is defined as a multi string
type for a system service. If I open the value with
regedit it says it is stored in binary. I'm looking for a
utility that I can use to convert or translate these
values into readable text.
 
You'll want to use regedt32.exe

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| I am collecting a value that is defined as a multi string
| type for a system service. If I open the value with
| regedit it says it is stored in binary. I'm looking for a
| utility that I can use to convert or translate these
| values into readable text.
 
You'll want to use regedt32.exe

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| I am collecting a value that is defined as a multi string
| type for a system service. If I open the value with
| regedit it says it is stored in binary. I'm looking for a
| utility that I can use to convert or translate these
| values into readable text.
 
Patrick, Afraid I'm using an asset inventory application
to extract the values and produce a spreadsheet or db. I
suspect I'll need to convert the field before I can read
it. That's why I was looking for a converter. If I don't
hear of anything by next Tuesday I guess I'll have to
write one myself. I don't really have the time but then
again I can't connect to 40,000 machines and run regedt32
either.
Thanks for the suggestion,
Bob
 
Patrick, Afraid I'm using an asset inventory application
to extract the values and produce a spreadsheet or db. I
suspect I'll need to convert the field before I can read
it. That's why I was looking for a converter. If I don't
hear of anything by next Tuesday I guess I'll have to
write one myself. I don't really have the time but then
again I can't connect to 40,000 machines and run regedt32
either.
Thanks for the suggestion,
Bob
 
Speer,

This VBScript may help. (watch for line wrap)
-----------------------------
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SYSTEM\CurrentControlSet\Control\Network"
strValueName = "FilterClasses"
objReg.GetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath, _
strValueName,arrValues

For Each strValue In arrValues
Wscript.Echo strValue
Next

-----------------------------

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| Patrick, Afraid I'm using an asset inventory application
| to extract the values and produce a spreadsheet or db. I
| suspect I'll need to convert the field before I can read
| it. That's why I was looking for a converter. If I don't
| hear of anything by next Tuesday I guess I'll have to
| write one myself. I don't really have the time but then
| again I can't connect to 40,000 machines and run regedt32
| either.
| Thanks for the suggestion,
| Bob
 
Speer,

This VBScript may help. (watch for line wrap)
-----------------------------
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SYSTEM\CurrentControlSet\Control\Network"
strValueName = "FilterClasses"
objReg.GetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath, _
strValueName,arrValues

For Each strValue In arrValues
Wscript.Echo strValue
Next

-----------------------------

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| Patrick, Afraid I'm using an asset inventory application
| to extract the values and produce a spreadsheet or db. I
| suspect I'll need to convert the field before I can read
| it. That's why I was looking for a converter. If I don't
| hear of anything by next Tuesday I guess I'll have to
| write one myself. I don't really have the time but then
| again I can't connect to 40,000 machines and run regedt32
| either.
| Thanks for the suggestion,
| Bob
 
In said:
Patrick, Afraid I'm using an asset inventory application
to extract the values and produce a spreadsheet or db. I
suspect I'll need to convert the field before I can read
it. That's why I was looking for a converter. If I don't
hear of anything by next Tuesday I guess I'll have to
write one myself. I don't really have the time but then
again I can't connect to 40,000 machines and run regedt32
either.

Is it possible to do the query via external commandline tool in the first
place? Ask because reg.exe (ResKit and Support Tools) dumps REG_MULTI_SZ
to STDOUT as "readable". Contains string nul-termination as in:

C:\TEMP>reg query HKEY_CURRENT_USER\_TEST /v multi

! REG.EXE VERSION 2.0

HKEY_CURRENT_USER\_TEST
multi REG_MULTI_SZ line one\0line two\0line three\0line four\0line five\0\0\0

But not sure that helps any. If I understand it, the application is
reading multi-string data as "raw" binary data without conversion, probably
in error.

-----Original Message-----
You'll want to use regedt32.exe

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| I am collecting a value that is defined as a multi string
| type for a system service. If I open the value with
| regedit it says it is stored in binary. I'm looking for a
| utility that I can use to convert or translate these
| values into readable text.


.
 
In said:
Patrick, Afraid I'm using an asset inventory application
to extract the values and produce a spreadsheet or db. I
suspect I'll need to convert the field before I can read
it. That's why I was looking for a converter. If I don't
hear of anything by next Tuesday I guess I'll have to
write one myself. I don't really have the time but then
again I can't connect to 40,000 machines and run regedt32
either.

Is it possible to do the query via external commandline tool in the first
place? Ask because reg.exe (ResKit and Support Tools) dumps REG_MULTI_SZ
to STDOUT as "readable". Contains string nul-termination as in:

C:\TEMP>reg query HKEY_CURRENT_USER\_TEST /v multi

! REG.EXE VERSION 2.0

HKEY_CURRENT_USER\_TEST
multi REG_MULTI_SZ line one\0line two\0line three\0line four\0line five\0\0\0

But not sure that helps any. If I understand it, the application is
reading multi-string data as "raw" binary data without conversion, probably
in error.

-----Original Message-----
You'll want to use regedt32.exe

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]
Microsoft Certified Professional [Windows 2000]
http://www.microsoft.com/protect


:
| I am collecting a value that is defined as a multi string
| type for a system service. If I open the value with
| regedit it says it is stored in binary. I'm looking for a
| utility that I can use to convert or translate these
| values into readable text.


.
 
Back
Top