May 17, 200422 yr 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
May 17, 200422 yr 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.
May 17, 200422 yr 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\/\/
May 17, 200422 yr Author With the HKLM\runonce, only the first user gets the commandAnd were trying not to use a tag file for execution...
May 17, 200422 yr 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
May 17, 200422 yr Author OK i figured it out...I added RunOnce to HKCU and the behavior was the same as the HKLM RunOnce.R
May 17, 200422 yr 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\/\/
Create an account or sign in to comment