PC Review


Reply
Thread Tools Rate Thread

converting multi string value (binary) to text

 
 
Bob Speer
Guest
Posts: n/a
 
      27th Feb 2004
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.
 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      27th Feb 2004
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


"Bob Speer" wrote:
| 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.


 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      27th Feb 2004
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


"Bob Speer" wrote:
| 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.


 
Reply With Quote
 
Bob S.
Guest
Posts: n/a
 
      27th Feb 2004
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
>-----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
>
>
>"Bob Speer" wrote:
>| 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.
>
>
>.
>

 
Reply With Quote
 
Bob S.
Guest
Posts: n/a
 
      27th Feb 2004
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
>-----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
>
>
>"Bob Speer" wrote:
>| 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.
>
>
>.
>

 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a
 
      27th Feb 2004
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


"Bob S." wrote:
| 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


 
Reply With Quote
 
Dave Patrick
Guest
Posts: n/a
 
      27th Feb 2004
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


"Bob S." wrote:
| 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


 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      28th Feb 2004
In microsoft.public.win2000.registry Bob S. wrote:

> 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
>>
>>
>>"Bob Speer" wrote:
>>| 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.
>>
>>
>>.
>>


 
Reply With Quote
 
Mark V
Guest
Posts: n/a
 
      28th Feb 2004
In microsoft.public.win2000.registry Bob S. wrote:

> 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
>>
>>
>>"Bob Speer" wrote:
>>| 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.
>>
>>
>>.
>>


 
Reply With Quote
 
New Member
Join Date: Mar 2011
Posts: 1
 
      15th Mar 2011
Check this !
http://binary.online-toolz.com/tools...-convertor.php
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting multi string value (binary) to text Bob Speer Microsoft Windows 2000 Registry 4 28th Feb 2004 03:48 AM
converting multi string value (binary) to text Bob Speer Microsoft Windows 2000 Registry Archive 0 27th Feb 2004 04:29 PM
Re: Converting a string to a string that contains the ASCII values of each letter in the origional string Mikael Jansson Microsoft C# .NET 0 31st Jul 2003 08:42 PM
Re: Converting a string to a string that contains the ASCII values of each letter in the origional string Jon Skeet Microsoft C# .NET 0 31st Jul 2003 08:38 PM
Re: Converting a string to a string that contains the ASCII values of each letter in the origional string Frank Oquendo Microsoft C# .NET 0 31st Jul 2003 08:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 PM.