Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Updates to default user NTUSER.DAT file not sticking

- - - - -

  • Please log in to reply
10 replies to this topic

#1
rchiav

rchiav
  • Member
  • 4 posts
  • Joined 03-September 09
EDIT: This is Server 2003 SP2 by the way.

I'm trying to make some default user profile changes via command line "reg"

Example

reg add "HKU\Test\software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /t REG_DWORD /d 3 /f

These changes work and if I load up the Default User NTUSER.DAT file, the changes are there. However, when I log in as a different user for the first time, not all of the changes propigate to the newly logged in user. The above entry is one that doesn't seem to take. I make that change in conjunction with some other settings that go along with it.

These changes are specific to a certian group of servers we have. The other setting I can never seem to get to stick is showing system or "super hidden" files. Again, this reg entry shows up in the NTUSER.DAT file for the default user, but the setings don't seem to propigate to the newly logged in user.

:: *** Show super hidden (i.e. system) files
reg add "HKU\Test\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ShowSuperHidden /t REG_DWORD /d 1 /f
reg add "HKU\Test\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v SuperHidden /t REG_DWORD /d 1 /f



And here is the full reg section for one specific group of servers.
:: ******************************************************************
:: ***** Configure Default User
:: ******************************************************************

:: *** Load Default User hive
reg load "HKU\Test" "%USERPROFILE%\..\Default User\NTUSER.DAT"

:: *** Set up default theme as Luna
reg add "HKU\Test\software\microsoft\windows\currentversion\ThemeManager" /v ColorName /t REG_SZ /d NormalColor /f
reg add "HKU\Test\software\microsoft\windows\currentversion\ThemeManager" /v DllName /t REG_Expand_SZ /d %SystemRoot%\resources\Themes\luna\luna.msstyles /f
reg add "HKU\Test\software\microsoft\windows\currentversion\ThemeManager" /v LastUserLangID /t REG_SZ /d 1033 /f
reg add "HKU\Test\software\microsoft\windows\currentversion\ThemeManager" /v SizeName /t REG_SZ /d NormalSize /f
reg add "HKU\Test\software\microsoft\windows\currentversion\ThemeManager" /v ThemeActive /t REG_SZ /d 1 /f
reg add "HKU\Test\software\microsoft\windows\currentversion\ThemeManager" /v WCreatedUser /t REG_SZ /d 1 /f


:: *** Set Visual Performance Settings to custom
reg add "HKU\Test\software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" /v "VisualFXSetting" /t REG_DWORD /d 3 /f

:: *** Use drop shadows for icon labels on the desktop
reg add "HKU\Test\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v ListviewShadow /t REG_DWORD /d 1 /f

:: *** Adds settings for Smooth scroll list boxes, Slide open combo boxes, Fade or slide menus into view
:: *** Show shadows under mouse pointer, Fade or slide tooltips into view, Fade out menu items after clicking
:: *** and Show shadows under menus
reg add "HKU\Test\Control Panel\Desktop" /v UserPreferencesMask /t REG_BINARY /d be1a0780 /f

:: *** Smooth edges of screen fonts
reg add "HKU\Test\Control Panel\Desktop" /v FontSmoothing /t REG_SZ /d 2 /f
reg add "HKU\Test\Control Panel\Desktop" /v FontSmoothingType /t REG_DWORD /d 2 /f


:: *** Unload Default User hive
reg unload "hku\Test"



Anyone know why this happens or a way around it?

Edited by rchiav, 03 September 2009 - 01:09 PM.



How to remove advertisement from MSFN

#2
strel

strel

    segmentation fault

  • Member
  • PipPipPipPip
  • 629 posts
  • Joined 24-February 08
  • OS:XP Pro x86
  • Country: Country Flag
I think "VisualFXSetting" should be VisualFXSetting
and you can find this useful.

#3
Noise

Noise

    Windows Guru

  • Member
  • PipPipPip
  • 425 posts
  • Joined 27-February 04
Do any of the changes propagate?

And shouldn't you be using HKCU instead of HKU?

#4
rchiav

rchiav
  • Member
  • 4 posts
  • Joined 03-September 09

Do any of the changes propagate?

And shouldn't you be using HKCU instead of HKU?


Yes, some of the changes propigate. And no, you don't use HKCU. I'm mounting the default users NTUSER.DAT as \HKU\test and writing the changes. When they log in for the first time, this should be copied to their profile and used as their HKCU hive.

#5
Noise

Noise

    Windows Guru

  • Member
  • PipPipPip
  • 425 posts
  • Joined 27-February 04
Ah Ya. I see what you've done there. Pain in the a** ain't it. I suggest that you use reg files instead of the reg.exe command. There are strange and weird registry permissions in the "Default User" ntuser.dat file. Load the hive, then load a properly formatted reg file using regedit /s - the reg.exe may have problems with the permissions.

Of course the "proper" way to edit the default user profile is to do at T-12 (cmdlines.txt) with a scripted installation.

#6
rchiav

rchiav
  • Member
  • 4 posts
  • Joined 03-September 09

I think "VisualFXSetting" should be VisualFXSetting

good catch. Thanks..

and you can find this useful.


Doesn't look like it helped. I'll dig into it some more tomorrow. Thanks for the help though.

(forgot to click submit on this before I left yesterday)

#7
rchiav

rchiav
  • Member
  • 4 posts
  • Joined 03-September 09

Ah Ya. I see what you've done there. Pain in the a** ain't it. I suggest that you use reg files instead of the reg.exe command. There are strange and weird registry permissions in the "Default User" ntuser.dat file. Load the hive, then load a properly formatted reg file using regedit /s - the reg.exe may have problems with the permissions.

Of course the "proper" way to edit the default user profile is to do at T-12 (cmdlines.txt) with a scripted installation.



I'm not having a problem updating the default NTUSER.DAT. I can open it again and the changes are there. The new user just doesn't get the changes.

#8
LisaTech

LisaTech

    Newbie

  • Member
  • 11 posts
  • Joined 26-August 09
I use a bunch of changes to the default user profile via reg add by running a cmd from cmdlines.txt but they don't take affect until after a 2nd reboot. They are applied against the Administrator account but if I only logout then log back in immediately they don't show up for new users. Reboot computer and log in with a new user and the changes are there... I am using the HKCU settings - apparently if the reg settings are added at the T-13 time they are applied to the default user ntuser.dat settings but only appear for regular users after the 2nd reboot after installation... Hope this helps.

#9
Mordac85

Mordac85

    Jack of all trades, master of none

  • Member
  • PipPipPip
  • 374 posts
  • Joined 26-January 04
  • OS:XP Pro x86
  • Country: Country Flag
You need to load the Default User hive (C:\Documents and Settigns\Default User\NTUSER.DAT) under, say HKLM as DefUsr, and then apply then changes to HKLM\DefUsr, not HKU. Then unload the hive and you should be good to go.
~Mordac85

Common sense is not so common.
~Voltaire

#10
g-force

g-force

    Tester

  • Member
  • PipPipPipPip
  • 599 posts
  • Joined 20-June 07
  • OS:XP Pro x86
  • Country: Country Flag
This is the way I do (Post #9):

http://www.msfn.org/...p;view=findpost

Edited by g-force, 06 September 2009 - 08:07 PM.

g-force @ Win-Lite.de
Make sure to always start with a fresh copy of your CD files/folders,
do all your work in one nLite session and integrate only one SP.
Please report when you have a solution, so others can benefit.


#11
Mordac85

Mordac85

    Jack of all trades, master of none

  • Member
  • PipPipPip
  • 374 posts
  • Joined 26-January 04
  • OS:XP Pro x86
  • Country: Country Flag
Actually, if you wanted to go to all the trouble of configuring an existing user profile I would recommend using the GUI to copy the profile to C:\Documents and Settings\Default User. If it's just a few reg hacks then load the hive and make your changes.
~Mordac85

Common sense is not so common.
~Voltaire




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN