Regedit command-line

M

Michael Waterman

Hi All,

I was wondering how to use the commanline feature of regedit. I am trying
the /R function I found on the net, but for some reason I can't get it to
work. This is what I'm trying to do:

regedit /R: "C:\Documents and Settings\Administrator\NTUSER.dat"
c:\Import.reg

The /R option is for editing a different NTUSER hive. For some reason it
doens't work... Can anyone help me?

Thanks
Michael Waterman
 
T

Torgeir Bakken \(MVP\)

Michael said:
Hi All,

I was wondering how to use the commanline feature of regedit. I am trying
the /R function I found on the net, but for some reason I can't get it to
work. This is what I'm trying to do:

regedit /R: "C:\Documents and Settings\Administrator\NTUSER.dat"
c:\Import.reg

The /R option is for editing a different NTUSER hive. For some reason it
doens't work... Can anyone help me?
Hi

You might use reg.exe instead (it comes builtin with WinXP).

Example on how to load an external hive file:

reg.exe load HKLM\TmpHive "C:\Documents and Settings\Administrator\NTUSER.DAT"


Then you can use reg.exe to query and/or manipulate the hive.

Run "reg.exe /?" in a command prompt for more help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top