RyanVM Posted September 11, 2003 Share Posted September 11, 2003 I'm trying to add to my batch file the registry entries needed to remove some icons (Like "My Music") and make things like the Control Panel expand themselves. I've figured out which keys control this (yay for Advanced Registry Monitor ), but the problem is that they lie in the HKCU area under those user-specific sections. I've thought about putting the changes under .DEFAULT, but I'm don't think that would help the current user. Is there any way you guys know of to determine this registry key for the current user to in order to make the necessary changes?Thanks! Link to comment Share on other sites More sharing options...
RyanVM Posted September 11, 2003 Author Share Posted September 11, 2003 I just found most of the settings I was looking to change in the registry tweaks thread, so I guess you can consider this moot now. Link to comment Share on other sites More sharing options...
jonnywi Posted September 11, 2003 Share Posted September 11, 2003 hi, you want having all hkcu strings for each user which logon on your pc.right?i have only 1 suggestiongoto regedithkey_usersload structure on c:\document and settings\default user\ntuser.datas ntuser now go to your *.reg files and change with find[HKEY_CURRENT_USER\ and replace [HKEY_USER\ntuser\than execute the *.reg filesand unload ntuser from hkey_usereache new created user have now the changesthe ntuser.dat file can you now slipstreaming on each installation Link to comment Share on other sites More sharing options...
Bachus Posted September 12, 2003 Share Posted September 12, 2003 Wait, so could I use this to basically backup the registry with whatever tweaks I want already installed and then have Setup use this file when creating the first user (in cmdlines.txt)? Link to comment Share on other sites More sharing options...
jonnywi Posted September 12, 2003 Share Posted September 12, 2003 yes you can put the ntuser.dat to $oem$\c\ntuser.daton cmdlines.txt you can execute a batchfile called install.bat[install.bat]move /y c:\ntuser.dat "C:\Documents and Settings\Default User\ntuser.dat"pause[/install.bat]this methode you will see that the moving was succesfulyand all users have the registry-tweaks. Link to comment Share on other sites More sharing options...
Bachus Posted September 12, 2003 Share Posted September 12, 2003 Does this include registry settings under HKEY_LOCAL_MACHINE? Link to comment Share on other sites More sharing options...
jonnywi Posted September 12, 2003 Share Posted September 12, 2003 no!this is the tamplate for creating a new user for HKEY_CURRENT_USER Link to comment Share on other sites More sharing options...
webmedic Posted September 12, 2003 Share Posted September 12, 2003 one other thing to note here. I had not thought about using the whole reg file but I show how to add hkey local machine stuff along with cmdlines.txt in this thread.http://board.MSFN.org/index.php?showtopic=8632 Link to comment Share on other sites More sharing options...
Bachus Posted September 12, 2003 Share Posted September 12, 2003 I didn't think the local_machine keys would work, but I just thought I'd ask. Link to comment Share on other sites More sharing options...
GreenMachine Posted September 12, 2003 Share Posted September 12, 2003 I'm sceptical ... Have you already done this? If so, have you installed to a DIFFERENT machine than that from which saved the ntuser.dat? This file is not on the distribution CD as it is built on each installation, and includes machine specific stuff like HDD mount points, GUID Identities, used by such things as Outlook Express (I know, I know...), Microsoft Input Devices. I may be mistaken, but I believe a move of this file would keep the current permissions - can a non-administrator access it? Tweaking the registry is already tricky business, I find it hard to belive that copying entier hives from one machine to another is without risk ... Then again, if it works for you, umso besser! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now