Link to home
Start Free TrialLog in
Avatar of out2getyou
out2getyou

asked on

Batch file to query 4 windows 7 registry values

Hi Guys,

I currently have this batch file to query one registry path in a particular machine on a text file but I need to query a few keys now:

For example, IE10

For /F "tokens=*" %%A IN (c:\junk\pcs.txt) DO echo %%A >> c:\junk\results.txt && reg query "\\%%A\hklm\software\microsoft\internet explorer" /v svcversion >> c:\junk\results.txt

It will put the results in file c:\junk\results.txt

I need to query a few more registry values. How do I add it in to this batch file?

thanks guys!
ASKER CERTIFIED SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America 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
Avatar of out2getyou
out2getyou

ASKER

Hi NVIT,

This is perfect! this may be the winner. Ill test and update shortly.
yep works thanks!!
thanks