Problem solve Get help with specific problems with your technologies, process and projects.

RunOnce? Try RunNever

Set a key to stop users from employing the RunOnce capability on Win2k.


RunOnce? Try RunNever
Serdar Yegulalp

You may want to insure that your users aren't capable of using the RunOnce key in the registry. This key refers to programs that run once at the next system reboot. It's often used by program installers to delete temporary files, but it can also be used to do other things that can be harmful to a system.

The RunOnce key is located at HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionRunOnce in the registry. To keep programs from being run from it, you can do one of two things:

  1. Enable the "Disable the Run Once list" Group Policy, which is in Computer ConfigurationAdministrative TemplatesSystem or User ConfigurationAdministrative TemplatesSystem.

  2. If you're not using group policies or don't have them configured, you can get the same results by setting the key DisableLocalMachineRunOnce (REG_DWORD) to 1. This key can be found at HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer or HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer. The LOCAL_MACHINE version of the key sets it for all users.

Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.

Dig Deeper on Windows client management

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.