Re: Edit Default User NTUSER.DAT
From: Olof Lagerkvist (no_at_email.address)
Date: 03/02/04
- Next message: Blake: "Event logs to cluttered"
- Previous message: David Cross [MS]: "Re: using EFS & WebDAV with multiple users"
- In reply to: Johan: "Edit Default User NTUSER.DAT"
- Next in thread: Johan: "Re: Edit Default User NTUSER.DAT"
- Reply: Johan: "Re: Edit Default User NTUSER.DAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Blake: "Event logs to cluttered"
- Previous message: David Cross [MS]: "Re: using EFS & WebDAV with multiple users"
- In reply to: Johan: "Edit Default User NTUSER.DAT"
- Next in thread: Johan: "Re: Edit Default User NTUSER.DAT"
- Reply: Johan: "Re: Edit Default User NTUSER.DAT"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|