- Using
HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Run:
Add a new String Value with the path to the executable. This will run the program for the current user at logon.
- Via
HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run:
Similar to the first method but applies to all users on the system.
- Using
HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce:
Executes the program once at the next user logon and then removes the entry.
- With
HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce:
Runs the executable once for all users on their next login.
- Adding to
HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run:
This is another way to run programs at logon for the current user.
- Through
HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\Explorer\\Run:
Runs the program for all users at logon.
- Utilizing
HKEY_CURRENT_USER\\Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows\\Load:
Loads the specified executable at user login.
- By modifying
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon\\Userinit:
Append your executable to the existing string value, followed by a comma.
- Using
HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Session Manager:
Add your executable to the BootExecute entry. This runs even before the user logs in.
- Through Task Scheduler Registry Key:
Create a task in Task Scheduler to run your executable and find its entry in
HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Schedule\\TaskCache\\Tree to see how it's registered.