andytaslim Posted February 13, 2008 Share Posted February 13, 2008 Hi guys,I want to run a batch file (only once) when the first login of the newly created user. I set a string value in HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run but it did not run the string value I set and I could not find the string value in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.I assume that after I set the string value in HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run, the string value will be copied to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run on the creation of new user, is that correct? Is there any other way to set startup running batch after login?Thank you Link to comment Share on other sites More sharing options...
andytaslim Posted February 14, 2008 Author Share Posted February 14, 2008 Sorry for not mentioning the Windows version... The problem I faced was on Windows Vista Enterprise Edition Link to comment Share on other sites More sharing options...
Largo Posted February 20, 2008 Share Posted February 20, 2008 HK_USERS\.DEFAULT is not the true default profile registry hive.Instead modify the Software\..\Run key in C:\Users\Default\NTUSER.DATLaunch Regedit, Select HKEY_USERSClick File > Load HiveSelect the hidden file (enter full path works) : C:\Users\Default\NTUSER.DATEnter the key name, eg.: DefaultProfileNow you can browser HKEY_USERS\DefaultProfile\Software\...\Run and make your changes.When it's done, select the DefaultProfile key and unload the hive (in File menu).You can make these changes in command line with the following tools :reg.exemodifyprofile.exeHTH,Largo 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