View unanswered posts | View active topics It is currently 18 Sep 2014 01:38



Post new topic Reply to topic  [ 3 posts ] 
REG EXPORT REG QUERY??? 
Author Message

Joined: 05 Sep 2011 09:15
Posts: 114
Post REG EXPORT REG QUERY???
Suppose I've extracted the wanted registry keys:
Code:
@ECHO OFF

REG QUERY HKLM /s /v WakeEnabled


The output:
Quote:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0009
WakeEnabled REG_DWORD 0x0
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0011
WakeEnabled REG_DWORD 0x0
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0009
WakeEnabled REG_DWORD 0x0
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0011
WakeEnabled REG_DWORD 0x0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0009
WakeEnabled REG_DWORD 0x0
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{36FC9E60-C465-11CF-8056-444553540000}\0011
WakeEnabled REG_DWORD 0x0
End of search: 6 match(es) found.


But how can I REG EXPORT them into the registry file format?
[/code]
REM obviously I've tried something like this but it seems not the suitable way

FOR /F "tokens=*" %%A IN ('REG QUERY HKLM /s /v WakeEnabled') DO (

)
[/code]


07 Aug 2012 22:10
Profile
Expert

Joined: 16 May 2011 08:21
Posts: 1261
Location: Flanders_(Belgium)
Post Re: REG EXPORT REG QUERY???
tinfanide wrote:
Suppose I've extracted the wanted registry keys:
Code:
@ECHO OFF

REG QUERY HKLM /s /v WakeEnabled

You can't use the /s option alongside the /v option. You either enumerate regkey/s or a single reg/value.
tinfanide wrote:
But how can I REG EXPORT them into the registry file format?
[/code]
REM obviously I've tried something like this but it seems not the suitable way

FOR /F "tokens=*" %%A IN ('REG QUERY HKLM /s /v WakeEnabled') DO (

)
[/code]
For regKeys use
Code:
reg export "hklm\software\..." regFile
For regVals reg export seems not an option.


07 Aug 2012 22:44
Profile WWW

Joined: 10 Feb 2012 02:20
Posts: 4180
Post Re: REG EXPORT REG QUERY???
reg import works with the exported file, doesn't it?


08 Aug 2012 00:41
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot] and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Forum style by Vjacheslav Trushkin for Free Forums/DivisionCore.