rdalling Posted May 17, 2004 Posted May 17, 2004 I need to execute a command the first time a user logs on a computer, but the problem using a Runonce command is that then next unique user to login to the system will not get the command.I have considered adding a command to the ntuser.datAnybody have any sugestions?R
Alanoll Posted May 17, 2004 Posted May 17, 2004 HKLM\Software\Microsoft\CurrentVersion\Runonce ?I'm not sure about this. But without actually looking, that's my guess. Or something similar. Or a self destroying batch file in the "StartUp" folder of the startmenu that delete's itself.
/\/\o\/\/ Posted May 17, 2004 Posted May 17, 2004 un-tried suggestion, use runOnce or start-up folder for "Default user"an other option would be to make a checkfile (e.g. let the script make a %username%.txt file, and check if the textfile does exist in the script)gr /\/\o\/\/
rdalling Posted May 17, 2004 Author Posted May 17, 2004 With the HKLM\runonce, only the first user gets the commandAnd were trying not to use a tag file for execution...
GreenMachine Posted May 17, 2004 Posted May 17, 2004 Use the StubPath in Active Setup. It is designed for exactly that purpose: one time per user setup. Here is a link to how it is set up for a virus. You should do similar, execpt avoid the auto-propogation. I admit, I did not read the article, but a glance suggested it has enough info, If not ... google.http://www.megasecurity.org/Trojaninfo/sub....2_startup.html
rdalling Posted May 17, 2004 Author Posted May 17, 2004 OK i figured it out...I added RunOnce to HKCU and the behavior was the same as the HKLM RunOnce.R
/\/\o\/\/ Posted May 17, 2004 Posted May 17, 2004 What i did mean is add the key under HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\RunOnceevery new user will get this profile gr /\/\o\/\/
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