Viper999 Posted February 11, 2005 Share Posted February 11, 2005 I need to modify HKCU as a power user in XP. Is there a way to load the enclosed regfile using the reg.exe command in a batch file. Would I be able to modify the ntuser.dat in c:\documents and setting\xxxxx\NTUSER.dat profile. I only need to modify one profile.Lock.reg Link to comment Share on other sites More sharing options...
jfmartel Posted February 11, 2005 Share Posted February 11, 2005 You might want to try the search button Here is your answer.... in this case it's for default user user, but you can customize it for any user Link to comment Share on other sites More sharing options...
Viper999 Posted February 11, 2005 Author Share Posted February 11, 2005 Can you please show how I can accomplish this at the user level ... I dont understand how HKLM\user works. Can you explain..... Link to comment Share on other sites More sharing options...
jfmartel Posted February 11, 2005 Share Posted February 11, 2005 Basicaly it load the NTUSER.DAT (wich is the current_user branch you chose) into the HKEY_LOCAL_MACHINE.You can do that the regedit.exe with "file-->load hive" then selecting a name for you loaded branch.....Then you can impot registry tweaks as you want....But because the change you want to do are in HKEY_LOCAL_MACHINE\User you got to change in your registry file HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE\User Link to comment Share on other sites More sharing options...
Viper999 Posted February 11, 2005 Author Share Posted February 11, 2005 Sorry Im am confused.. The reg file I attached needs to modify hkcu I dont understand how to use the reg command to get that accomplished. I need to import the attached reg file to a specific profile. I know the path to the profile iI need to modify. Any help would be appreciated. Sorry I am having a mental block. Can I reach you by phone this is really bugging me... My email address at work is james.m.cease@slma.comThanks, Link to comment Share on other sites More sharing options...
Viper999 Posted February 11, 2005 Author Share Posted February 11, 2005 I would like to know how to modify the default user profile and a subsequent profile if need be if it already exists. Link to comment Share on other sites More sharing options...
jfmartel Posted February 11, 2005 Share Posted February 11, 2005 Here is your modified fileso your command should be (if you dont changed the location for user's profileREG LOAD "HKLM\User" "C:\Documents and Settings\Default User\NTUSER.DAT"REG IMPORT "lock.reg"REG UNLOAD "HKLM\User"As you'll see in your reg file...i changed HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE\UserThis will allow you to change settings for the default user.....Lock.reg Link to comment Share on other sites More sharing options...
Viper999 Posted February 11, 2005 Author Share Posted February 11, 2005 When I look in the registry HKLM\USER does not exist.. When you create this subkey it loads when a new user logs onto the system ? What about and existing user ?Thanks for your help it is appreciated. Link to comment Share on other sites More sharing options...
jfmartel Posted February 11, 2005 Share Posted February 11, 2005 Using the procedure i've replying you does that automatically...if you want to add HKLM\User you got to it with the regedit.... see my second reply.......Put the procedure ive send you in a .cmd file and put your reg file in the same directory and it should works....Thank you! Link to comment Share on other sites More sharing options...
Viper999 Posted February 11, 2005 Author Share Posted February 11, 2005 Thanks a buch that worked fabulously ......... Link to comment Share on other sites More sharing options...
jfmartel Posted February 11, 2005 Share Posted February 11, 2005 Np 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