You are currently offline, waiting for your internet to reconnect

How to grant users the access to add Visual Basic components

This article was previously published under Q274484
Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows registry
When Visual Basic 6.0 is installed by an administrator on either Windows NT 4.0 or Windows 2000, generic users can run the Visual Basic application. However, if they try to add Components from the Project menu drop-down list box, they receive the following error message:
Access Denied
This article demonstrates how to grant users access to add components without giving them Administrator or Power User rights.
Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

To grant user access, create a new group of users.

In Windows 2000, the steps are:
  1. On the Start menu, point to Programs, point to Administrative Tools, and then click Computer Management.
  2. To expand the branches, click the plus symbol (+) next to System Tools under the Tree tab, and then click the plus symbol (+) next to Local Users and Groups.
  3. Right-click the Groups folder to view the shortcut menu. Click the New Group menu to view the New Group dialog box.
  4. Give the new group a Group Name, such as VB Programmers, a description, and then add one or more Members. Click Create to save the new group.
NOTE: In Windows NT 4.0, use User Manager for Domains.

After you finish the preceding steps, modify the registry. Modify the permissions on the following keys and add VB Programmers to these keys with full control inheriting the permissions down the key as follows:
  1. Start Registry Editor (Regedt32.exe).
  2. Locate the following keys in the registry:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic
  3. For each key, click Permissions on the Security menu. Add the VB Programmers group to the key, and then click Apply.
  4. Select the new VB Programmers group, and then select the Allow Full Control check box. Click Allow inheritable permissions from parent to propagate to this object. NOTE: On Windows NT 4.0, click Replace permission on existing sub keys.

  5. Click Apply, and then click OK.
  6. Quit Registry Editor.

Article ID: 274484 - Last Review: 01/29/2007 13:35:40 - Revision: 2.3

  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
  • Microsoft Windows 2000 Standard Edition
  • Microsoft Windows NT 4.0
  • kbhowto KB274484