Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > can you load a hive with a script or cmd line

can you load a hive with a script or cmd line

Forum Windows XP : Windows XP General Discussion - can you load a hive with a script or cmd line

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

i have a script ready to modify the default user ntuser.dat file but i have
to load the hive prior to running it any way to add the load and unload to
the script??

Sponsored Links
Register or log in to remove.

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

This is a stupid question. Without knowing your script how can we know what is appropiate. Type reg in help.

--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archive [...] 01075.html
=================================================
"Mike" <Mike @discussions.microsoft.com> wrote in message news:E2487063-9DC1-4E26-A7FA-B58D3A23889D@microsoft.com...
>i have a script ready to modify the default user ntuser.dat file but i have
> to load the hive prior to running it any way to add the load and unload to
> the script??

Reply to Anonymous

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Mike wrote:

> i have a script ready to modify the default user ntuser.dat
> file but i have to load the hive prior to running it any way
> to add the load and unload to the script??
Hi,

You can use the command line utility reg.exe for this (it comes
builtin with WinXP).

You would need to start out with loading the default user's HKCU hive
to a *temporary* key under HKLM, like this:

reg.exe load HKLM\TempHive "C:\Documents and Settings\Default User\NTUSER.DAT"

Then you can use reg.exe to query and/or manipulate the hive,
addressing the HKEY_LOCAL_MACHINE\TempHive key that actually
represent the HKEY_CURRENT_USER key for the default user.

When finished, unload the hive again like this:

reg.exe unload HKLM\TempHive

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



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/s [...] fault.mspx

Reply to Anonymous
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > can you load a hive with a script or cmd line
Go to:

There are 474 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them