1.

Solve : Using Reg Query to get info from left side of registry?

Answer»

Hello,

I have done a LOT of research on this and will continue but have yet to FIND an answer.

Seems that Reg Query works mostly with the right pane in the registry.  I need to do the left.  Specifically, I am trying to get a listing of all the Restricted Sites currently set in IE.  I know it is here
HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domainsbut the sites are all listed on the left.  When I try a query
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains" /sI get
...
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\008i.com
    *    REG_DWORD    0x4

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains\008k.com
    *    REG_DWORD    0x4
...

The sites 008i.com and 008k.com are just two of the many sites.  I also understand that the 0x4 means this is a Restricted site (as opposed to a 0x2 which is a TRUSTED site).

I also USE
findstr /C:"    0x2" to parse the information about these Restricted sites.  That part works fine, but all the information I am asking for is in the right pane.

Is this just not possible or am I using the wrong TOOL?  Please keep in mind I am not a programmer.

Thanks for the Help.

Vista SP2 Home Basicthe registry doesn't have "panes".

it has Keys, and those Keys contain More keys, as well as a list of values. A conceptual model could be to think of keys as folders, and the values as files within those folders. This is pretty much the metaphor regedit is going for.


the "Right Pane" of regedit is the listing of values. The  Left pane is the listing of keys.

I'm pretty sure the switch you are looking for is /k, not /s.



Discussion

No Comment Found