Re: Edit Default User NTUSER.DAT

From: Johan (anonymous_at_discussions.microsoft.com)
Date: 03/02/04


Date: Tue, 2 Mar 2004 07:20:52 -0800

Olof, this is exactly what I was looking for. I was so
close to getting there before.

It's still not quite working though.
I can load the ntuser.dat file into the hive ok
I then reg import my .reg file
I then reg query the key and it's all good
I then unload the hive again

But when I log off and login as a new user it hasn't
transferred into the new profile. What's gone wrong?

Cheers

>-----Original Message-----
>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: 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)
  • Re: Edit Default User NTUSER.DAT
    ... The normal way is to use regedt32.exe application and "load hive" menu ... But if you want to do it from a script or command line, ... then make a normal .reg file and import it using "reg import" or ...
    (microsoft.public.win2000.security)
  • Re: Registry Add Commands
    ... >> Here are the two keys that the Tech wants to be installed. ... >> them into the .reg file, but they wouldn't load. ... > in front of your commands at a command prompt. ...
    (microsoft.public.win2000.general)
  • Re: IIS-bug - CGI-applikation terminates when loading standard DLL
    ... Hit refresh and the page will load fine second time round. ... not executed with the CreateProcessAsUserAPI call by IIS anymore. ... Here is a description of how to set the metabase property which control ... If the command is successful, it will tell you it updated the setting, ...
    (microsoft.public.inetserver.iis)
  • Re: UserForm Is A Class
    ... I have a simple userform with one command button. ... I see the behaviour that you point out about Load and Show and wil then ... Load myForm ... the Unload is done implictly when then routine ends and the ...
    (microsoft.public.word.vba.general)