Re: Edit Default User NTUSER.DAT

From: Olof Lagerkvist (no_at_email.address)
Date: 03/02/04


Date: Tue, 02 Mar 2004 13:40:04 GMT

Johan wrote:

> For very good reasons I want to be able to edit the
> Defualt User NTUSER.dat file in a script or command line.
>
> How can this be done, I've looked at SO MANY ways but
> can't find a solution.

The normal way is to use regedt32.exe application and "load hive" menu
option to load the file into a registry key and then edit that key in
usual way, then unload the hive again.

But if you want to do it from a script or command line, you need the
reg.exe command line utility. The reg.exe is included in Windows XP/2003
and it is available as a resource kit utility for NT/2000. (Download the
resource kit support tools for NT 4 to get it.)

First execute
reg load HKU\DefaultUser "C:\Documents and Settings\Default User\ntuser.dat"
then make a normal .reg file and import it using "reg import" or
"regedit /s" and then execute
reg unload HKU\DefaultUser

-- 
Olof Lagerkvist
ICQ: 724451
Web page: http://here.is/olof


Relevant Pages

  • Re: Modify Registry on all SBS2003 clients
    ... registry setting to all workstations. ... command "REG ADD" to modify registry. ... the following command will change the registry value as your ... You may copy above command into the login script file SBS_LOGIN_SCRIPT.bat ...
    (microsoft.public.windows.server.sbs)
  • Re: Modify Registry on all SBS2003 clients
    ... registry setting to all workstations. ... command "REG ADD" to modify registry. ... the following command will change the registry value as ... and put the command lines at the bottom of the script file. ...
    (microsoft.public.windows.server.sbs)
  • Header Question
    ... I have a PHP script which performs some processing. ... I want to use the 'header' command to load a different page. ... After I perform all my processing, I put the header command in and all ...
    (comp.lang.php)
  • Re: Edit Default User NTUSER.DAT
    ... Olof, this is exactly what I was looking for. ... I can load the ntuser.dat file into the hive ok ... I then reg import my .reg file ... >But if you want to do it from a script or command line, ...
    (microsoft.public.win2000.security)
  • Re: Registry Add Commands
    ... Console Registry Tool for Windows - version 3.0 ... it gives me the 'reg' is not recognized as an internal or ... >>> them into the .reg file, but they wouldn't load. ... >> in front of your commands at a command prompt. ...
    (microsoft.public.win2000.general)

Quantcast