converting multi string value (binary) to text

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.
 
D

Dave Patrick

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.
 
D

Dave Patrick

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.
 
B

Bob S.

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
 
B

Bob S.

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
 
D

Dave Patrick

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
 
D

Dave Patrick

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
 
M

Mark V

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.


.
 
M

Mark V

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.


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top