Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regedit: Find and export keys from command prompt

I'm wondering is there any option via command line to search for a string and export all found keys in Windows registry?

like image 957
Ara Avatar asked Mar 14 '13 12:03

Ara


2 Answers

Ex:: If you want to check whether "HKLM\software\etc" key exists.

reg.exe query "HKLM\Software\etc" will return all the subkeys and values in command prompt if found or an error if not found.

ALso, you can directly do

reg.exe export "HKLM\software\etc" "C:\etc.reg"

This will export the registry key and subkeys if found otherwise error if not found.

like image 172
Abhineet Avatar answered Oct 19 '22 19:10

Abhineet


Powershell has registry iteration capabilities. Start here: http://technet.microsoft.com/en-us/library/ee176841.aspx

like image 25
durilka Avatar answered Oct 19 '22 19:10

durilka