MSFN Forum: Modify Default User profile registry hive after Setup ? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Modify Default User profile registry hive after Setup ? Rate Topic: -----

#1 User is offline   midiboy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 586
  • Joined: 04-July 04

Posted 27 October 2007 - 08:17 AM

Hi guys,

in Windows XP it was possible to modify the registy of the default user profile by loading the ntuser.dat like this:

REG LOAD "HKU\CUSTOM" "%ALLUSERSPROFILE%\..\Default User\NTUSER.DAT"
REG ADD "HKU\CUSTOM\Software\Microsoft\Windows\CurrentVersion\Run" /V "Test" /D "%PROGRAMFILES%\Test.exe" /F
REG UNLOAD "HKU\CUSTOM"


However, in Windows Vista, this does not work anymore. Do you guys have any idea how I can modify the default user registry after Vista Setup has finished ?

Thanks a lot for your help !
Alex


#2 User is offline   razormoon 

  • Little boots...!
  • PipPip
  • Group: Members
  • Posts: 216
  • Joined: 17-February 06

Posted 27 October 2007 - 12:59 PM

Try REG LOAD "HKU\CUSTOM" "%SystemDrive%\User\Default\NTUSER.DAT"

#3 User is offline   midiboy 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 586
  • Joined: 04-July 04

Posted 28 October 2007 - 05:23 AM

Hi Razormoon,

thanks, will try that and let you know if it works. I just think there may be a problem with rights. At least last time I tried something similar the administrator account did not have the rights to modify the registry like this but I donīt remember the exact reason. Will try it again.

Bye,
Alex

#4 User is offline   tazmaniandevil 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 30-December 04

Posted 21 November 2007 - 07:54 AM

Just saw this topic while searching for something else.
I load a custom Default profile so all users get the same settings etc. My method is prolly not supported by M$, but then most of what I do prolly isn't supported.
I take the ntuser.dat from %Users%\Default on a Vista machine and load it in regedit.
Highlight HKEY_USERS
File --> Load Hive...
Browse to the donor ntuser.dat and open.
When prompted at Load Hive dialog, call it Default_User --> Click OK
Open HKEY_USERS --> Default_User and add any HKCU settings you want to apply to all users.
Unload hive --> Copy modified ntuser.dat file to $oem$\$1\Users\Default
This modified ntuser.dat is copied to the hdd at build time, and all users logging on for the first time get these settings.

Apologies if this has already been covered in another answer.

#5 User is offline   jaws75 

  • Member
  • PipPip
  • Group: Members
  • Posts: 124
  • Joined: 22-April 06

Posted 22 November 2007 - 12:16 AM

read here

Although this example modified the ntuser.dat in the install.wim it should work the same.

This post has been edited by jaws75: 22 November 2007 - 12:17 AM


#6 User is offline   tazmaniandevil 

  • Newbie
  • Group: Members
  • Posts: 27
  • Joined: 30-December 04

Posted 22 November 2007 - 03:17 AM

I don't particularly want to alter the install.wim source. I have tried this for copying files and settings etc. $oem$ style, but kept getting errors telling me the source was corrupt. I also find it an incredibly long winded way of doing things. As we only ever build machines here from RIS/WDS I find it much easier to follow the XP style convention of using the $oem$ folders - whether M$ recommend it or not.
I feel M$ have lost a lot of good features from RIS in their rush to push WDS - and don't seem to be listening to their customers when we ask for these features back.

#7 User is offline   faxio 

  • Group: Members
  • Posts: 6
  • Joined: 10-September 04

  Posted 22 December 2007 - 10:12 PM

I use REG LOAD/UNLOAD method
why this reg does not work ?

I modify
[HKCU\Control Panel\International]
"sTimeFormat"="tt hh:mm:ss"

to

"HH:mm:ss"

after Vista Setup has finished
still "tt hh:mm:ss"


I try %windir%\system32\config\systemprofile\ntuser.dat

Remains the same

sorry ! my english is poor

Thanks a lot for your help !!!

This post has been edited by faxio: 23 December 2007 - 03:41 AM


#8 User is offline   Mikka 

  • Junior
  • Pip
  • Group: Members
  • Posts: 55
  • Joined: 02-March 06
  • OS:none specified
  • Country: Country Flag

Posted 14 September 2010 - 01:43 PM

Hi!

Any news about modifying NTUSER.DAT with Windows 7?

I set up a VM installation today and wondered if automization would be feasible, much like former approaches in XP:

@echo off
:: 1. Mount Default User
reg load HKLM\DefaultProfile %SystemDrive%\Users\Default\NTUSER.DAT
:: 2. Apply local HKCU.reg (many entries) directly to mounted DefaultProfile
reg import HKCU.reg
:: 3. Unmount Default User, et voilà!
reg unload HKLM\DefaultProfile
exit

For Windows XP it was exactly like this (I just used HKU instead of HKLM) and it worked like a charm!
The tests I did showed that it is possible to manually load the hive (in regedit) and alter single values.
Now I'd like to script these changes!

Any recommendations how to do this?

Greetings,
Mikka

Edit: By the way, merely ordinary keys/values should be written, no restricted ones.

This post has been edited by Mikka: 14 September 2010 - 01:56 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy