Run and RunOnce Registry Keys - Win32 apps (2024)

  • Article

Use Run or RunOnce registry keys to make a program run when a user logs on. The Run key makes the program run every time the user logs on, while the RunOnce key makes the program run one time, and then the key is deleted. These keys can be set for the user or the machine.

The data value for a key is a command line no longer than 260 characters. Register programs to run by adding entries of the form description-string=commandline. You can write multiple entries under a key. If more than one program is registered under any particular key, the order in which those programs run is indeterminate.

The Windows registry includes the following four Run and RunOnce keys:

  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce

Important

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce only executes when members of the Administrators group log on after the reboot.Additional details can be found in the articles RunOnce Registry Key, Developing Applications that Run at Logon, and Troubleshooting Windows client.

By default, the value of a RunOnce key is deleted before the command line is run. You can prefix a RunOnce value name with an exclamation point (!) to defer deletion of the value until after the command runs. Without the exclamation point prefix, if the RunOnce operation fails, the associated program will not be asked to run the next time you start the computer.

By default, these keys are ignored when the computer is started in Safe Mode. The value name of RunOnce keys can be prefixed with an asterisk (*) to force the program to run even in Safe Mode.

A program that is run from any of these keys should not write to the key during its execution because this will interfere with the execution of other programs registered under the key. Applications should use the RunOnce key only for transient conditions, such as to complete application setup. An application must not continually recreate entries under RunOnce because this will interfere with Windows Setup.

Windows Registry, RunOnce Registry Key

Run and RunOnce Registry Keys - Win32 apps (2024)
Top Articles
How Much Money To Give a 12-Year-Old for Christmas?
Public.com Review 2024: Pros & Cons
Palm Coast Permits Online
Uti Hvacr
Jonathon Kinchen Net Worth
Culver's Flavor Of The Day Wilson Nc
Es.cvs.com/Otchs/Devoted
Toonily The Carry
Why Is Stemtox So Expensive
Oxford House Peoria Il
Gfs Rivergate
Healing Guide Dragonflight 10.2.7 Wow Warring Dueling Guide
Viha Email Login
Viprow Golf
Bcbs Prefix List Phone Numbers
Images of CGC-graded Comic Books Now Available Using the CGC Certification Verification Tool
Q33 Bus Schedule Pdf
623-250-6295
Petco Vet Clinic Appointment
Aps Day Spa Evesham
1973 Coupe Comparo: HQ GTS 350 + XA Falcon GT + VH Charger E55 + Leyland Force 7V
Bellin Patient Portal
Boxer Puppies For Sale In Amish Country Ohio
European Wax Center Toms River Reviews
Fiona Shaw on Ireland: ‘It is one of the most successful countries in the world. It wasn’t when I left it’
JVID Rina sauce set1
Access a Shared Resource | Computing for Arts + Sciences
Creed 3 Showtimes Near Island 16 Cinema De Lux
Stockton (California) – Travel guide at Wikivoyage
Speechwire Login
Healthy Kaiserpermanente Org Sign On
Craigslist Auburn Al
Sacramento Craigslist Cars And Trucks - By Owner
Ehome America Coupon Code
Earthy Fuel Crossword
Evil Dead Rise - Everything You Need To Know
Pfcu Chestnut Street
6465319333
Kagtwt
20+ Best Things To Do In Oceanside California
Studentvue Columbia Heights
Noaa Marine Weather Forecast By Zone
Husker Football
How To Upgrade Stamina In Blox Fruits
Dcilottery Login
Lake Kingdom Moon 31
Isabella Duan Ahn Stanford
Trending mods at Kenshi Nexus
Verizon Forum Gac Family
1990 cold case: Who killed Cheryl Henry and Andy Atkinson on Lovers Lane in west Houston?
Craigslist Charles Town West Virginia
Latest Posts
Article information

Author: Nathanael Baumbach

Last Updated:

Views: 6063

Rating: 4.4 / 5 (75 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Nathanael Baumbach

Birthday: 1998-12-02

Address: Apt. 829 751 Glover View, West Orlando, IN 22436

Phone: +901025288581

Job: Internal IT Coordinator

Hobby: Gunsmithing, Motor sports, Flying, Skiing, Hooping, Lego building, Ice skating

Introduction: My name is Nathanael Baumbach, I am a fantastic, nice, victorious, brave, healthy, cute, glorious person who loves writing and wants to share my knowledge and understanding with you.