Link to home
Start Free TrialLog in
Avatar of Vision_Globale
Vision_GlobaleFlag for Canada

asked on

Why reg.exe query hklm\software does not return the same thing then regedit hklm\software?

Hi all!

I just don't understand why "reg query hklm\software" does not return the same thing then if you go via "regedit" hklm\software?

I ask this because I need to built a batch script that poke the registry key if exit and if not add it, simple...

But when I do "reg query hklm\software" I don't see the the folder where are my keys. If I go trough the regedit I can see it...

strange...

thanks for the help.
Avatar of Vision_Globale
Vision_Globale
Flag of Canada image

ASKER

Ok I just understand something very interresting:

I'm on win 7 x64.

when i use reg query hklm\software it display me the same thing I have in regedit HKLM\software\Wow6432Node

Wow!!

when I start regedit or regedt32 from run box, I can see my keys.

But If I start the both same application from : C:\Windows\SysWOW64\cmd.exe or C:\Windows\System32\cmd.exe I got the exact same listing then reg query hklm\software...

Is there a way to fixe this???
ASKER CERTIFIED SOLUTION
Avatar of Vision_Globale
Vision_Globale
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial