MSFN Forum: Run Once on each new user created - MSFN Forum

Jump to content



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

Run Once on each new user created Rate Topic: -----

#1 User is offline   andytaslim 

  • Group: Members
  • Posts: 2
  • Joined: 13-February 08

Posted 13 February 2008 - 05:23 AM

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


#2 User is offline   andytaslim 

  • Group: Members
  • Posts: 2
  • Joined: 13-February 08

Posted 13 February 2008 - 09:39 PM

Sorry for not mentioning the Windows version... The problem I faced was on Windows Vista Enterprise Edition

#3 User is offline   Largo 

  • Newbie
  • Group: Members
  • Posts: 10
  • Joined: 20-July 07

Posted 20 February 2008 - 09:42 AM

HK_USERS\.DEFAULT is not the true default profile registry hive.

Instead modify the Software\..\Run key in C:\Users\Default\NTUSER.DAT

Launch Regedit, Select HKEY_USERS
Click File > Load Hive
Select the hidden file (enter full path works) : C:\Users\Default\NTUSER.DAT
Enter the key name, eg.: DefaultProfile
Now 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.exe
modifyprofile.exe

HTH,
Largo

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