NTUSER.DAT ... Things you want to know
#1
Posted 09 March 2004 - 02:31 PM
what is it? how can i install my own?
<-begin quote->
All user-specific configuration information (which is displayed in Registry
Editor as HKEY_CURRENT_USER) is stored in
the NTUSER.DAT file in the \Documents and Settings\<username> folder.
Bill Peele
Microsoft Enterprise Support
<-end quote->
personal observations concerning NTUSER.DAT
- the home page for IE is stored here.
- IE and Explorer toolbar configurations are stored here
- quick launch enable and taskbar configs are stored here
EDIT - - - - - -
- specific window(s) positions and views are stored here
eg. control panel view by icons etc. or a user desktop folder etc.
EDIT - - - - - -
The above statement is untrue. sorry for the false information
by Shark007 - March 11, 2004
-I'm sure there is alot more to this file.. but the above covers specific
modifications unattended users may be looking for.
your current NTUSER.DAT can only be copied if you are logged into a different
accnt than the accnt you are trying to copy it from.
To install an existing NTUSER.DAT file to an unattended installation
(this also can install Desktop and Start Menu folders and icons including IE Favorites as Default items to new users)
I've placed all of the above into \$OEM$\$1\NTUSER
1) in WINNT.SIF set the following to enable innitial logon to admin accnt.
[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
AutoLogon=Yes
AutoLogonCount=1
2) call a batchfile from RunOnceEX.cmd containing the following:
-this will copy your NTUSER.DAT and any other files to the .\Default User\ accnt
-it will delete the ASP.NET accnt allowing logon without choosing user if only 1 user
-it will creat a NEWUSER accnt, set it to admin, and log it in next boot with the
supplied NTUSER.DAT file.
-----start batchfile-----
attrib -h -s "%systemdrive%\Documents and Settings\Default User\ntuser.dat"
ren "%systemdrive%\Documents and Settings\Default User\ntuser.dat" "ntuser.old"
xcopy "%systemdrive%\ntuser\*.*" "%systemdrive%\Documents and Settings\Default User\" /s /h /y
attrib -r +h +s "%systemdrive%\Documents and Settings\Default User\ntuser.dat"
net user ASPNET /del
REM NEWUSER in the next line can be any username you prefer
set _USER=NEWUSER
net user %_USER% "" /add
net localgroup administrators "%_USER%" /add
%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserName" /d "%_USER%" /f
%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "DefaultUserPassword" /d "" /f
%SystemRoot%\system32\reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v "AutoAdminLogon" /d "1" /f
-----end batchfile-----
of coarse.. there will be line wrapping in the above batchfile
but a copy/paste to notepad should come out correctly
This works for me .. installing Desktop folders, Start Menu items and of coarse
my personal NTUSER.DAT file containg the configs i prefer.
Shark007
#2
Posted 09 March 2004 - 03:06 PM
1) in WINNT.SIF set the following to enable innitial logon to admin accnt.
[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
AutoLogon=Yes
AutoLogonCount=1
Question. If a PC is configured to run the password before logon and I change the (AdminPassword=*) to (AdminPassword=) will that cause the PC to boot straight to the desktop?
Thanks
#3
Posted 09 March 2004 - 03:13 PM
net user ASPNET /del
Deleting the ASP.NET accnt will allow you to boot directly to the desktop as long as there arent any other users configured
ps: next time start a new topic . this topic obviously concerns the file NTUSER.DAT
Shark007
#4
Posted 09 March 2004 - 03:14 PM
I was under the impression the user SID was also stored in the file and therefor cause problems on a clean install when the users SID changed.
#5
Posted 09 March 2004 - 03:17 PM
That would also include the entries for any programs you've installed, and any misc. entries that you know nothing about that were entered as a result of a program.
That's my only beef with it.
Also, i think the CLASSES_ROOT pertaining to the user is also stored there as well.
#6
Posted 09 March 2004 - 03:19 PM
(or just use your current in use file)
your impression of 'SID' whatever that means is possibly incorrect because i have copied and reused NTUSER.DAT near 100 times now without a single error.
Shark007
#7
Posted 09 March 2004 - 03:20 PM
EDIT: Alanoll... Do you know if Im right on the SID topic?
#8
Posted 09 March 2004 - 03:24 PM
and if you think about it Shark's method, it could be that it uses the SID in the new DAT file, as the old one gets deleted, and it's stored in the file.....but ya never know.
#9
Posted 09 March 2004 - 09:35 PM
SKiTLz, on Mar 9 2004, 03:14 PM, said:
I was under the impression the user SID was also stored in the file and therefor cause problems on a clean install when the users SID changed.
Edit the NTUSER.DAT file which you want to use. I use replenent registrar, but you can use regedit. Go to the key Identities and remove all subfolders, and all values inside the identities folder, except the keys default, Identity Ordinal, Last User ID, Last Username, and Migrated5.
Make sure binary values are set to the following:
Identity Ordinal: 0000000000000000000000000000001 (Decimal 1 in regedit)
Last User ID: {00000000-0000-0000-0000-000000000000}
Last Username: (Leave Blank)
Migrated5: 00000000000000000000000000000001 (Decimal 1 in regedit)
Then save NTUSER.DAT.
#10
Posted 10 March 2004 - 12:49 AM
;----------------------------------------------------------------------
; Privileges & Rights
;----------------------------------------------------------------------
;
;World S-1-1-0
;
;NT Authority S-1-5
;LOCAL_SERVICE 19
;NETWORK_SERVICE 20
;
;Built-In Domain SubAuthority = S-1-5-32
;ADMINISTRATORS 544
;USERS 545
;GUESTS 546
;POWER_USERS 547
;ACCOUNT_OPS 548
;SYSTEM_OPS 549
;PRINT_OPS 550
;BACKUP_OPS 551
;REPLICATOR 552
;RAS_SERVERS 553
;PREW2KCOMPACCESS 554
;REMOTE_DESKTOP_USERS 555
;NETWORK_CONFIGURATION_OPS 556
As mentioned the HKCU registry is mapped to the current ntuser.dat, which i believe is a hidden file in use when you are logged in. A good idea is to log into a profile, configure it like you want, then deploy that ntuser.dat. But be careful, anytime you click on something a MRU might be created.
One idea not mentioned is using setupreg.hiv. On upgrades XP will basically split the old registry and merge it with the hivexxx.inf files. On clean installs the registry starts as setupreg.hiv, then later it's merged with the hivexxx.inf files at the end of text mode. You could load setupreg.hiv as a hive in regedit, add custom settings then unload it. Then you wouldn't need to mess with hives during the install. Of course this method would be more complex.
-gosh
#12
Posted 11 March 2004 - 09:59 AM
DarkBringer, on Mar 10 2004, 04:16 AM, said:
This contributes how?? Of course what??
#13
Posted 18 November 2006 - 08:37 AM
But if any of the experts here are still around, could you please help out on this thread:
http://www.msfn.org/...showtopic=86965
Thanks.



Help

Back to top









