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

Requires Free Membership to View

Windows 2000 Power Users Newsletter.

This was first published in November 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.