Q: I have several programs set to launch via the RunOnce registry keys, but they're not starting when a user logs in. Why not?
John Savill
July 20, 2011
1 Min Read
A: There are several registry keys that allow an application to launch once, normally for some kind of initial setup process:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnce
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunOnceEx
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunonce
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunonceEx
These keys are frequently used by malware. To increase security, commands set to execute in these keys don't run when a normal user logs on—only when an administrator logs on, per this Microsoft Article. If you want a process to run for a normal user, consider using a scheduled task.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like