RunOnce

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion

Description

The RunOnce subkey stores the names of programs that will be run the next time that a user logs on. These programs are run only one time, and then the registry entries that specified them are deleted from the subkey.

However, if the account of the next user to log on does not have permissions to delete entries from the RunOnce subkey, then the specified programs will not be run. The operating system will not run the programs until a user with adequate permissions logs on.

Each entry in the subkey represents a program. The value of the entry is the name of the executable file for the program. These entries have the following format:

Entry name Data type Value

Program Name

REG_SZ

File name