DB2 Version 9.7 for Linux, UNIX, and Windows
Installing DB2 Servers > Additional Windows requirements >

Setting up Windows elevated privileges before installing a DB2 product (Windows)

The usual method to install a DB2® product on Windows® is to use an Administrator user account. However, DB2 products can be installed using a non-administrator account. To do so, a Windows Administrator must configure the elevated privileges feature in Windows.

This task explains how a Windows Administrator can set up a computer with elevated privileges to allow installation using a non-Administrator user account. The related task of granting DB2 administration authorities to non-Administrator users is also covered.

Typically a Windows Administrator would perform this task to enable another person who does not have an Administrator account to install a DB2 product. The role of this person might be only to install DB2 products or to also administer DB2 products once installed.

Before initiating this procedure, note the following restrictions on non-Administrator installation using elevated privileges:

This procedure uses the Windows Group Policy Editor.

  1. Click Start -> Run and type gpedit.msc. The Group Policy window opens.
  2. Click on Computer Configuration -> Administrative Templates -> Windows Components -> Windows Installer.
  3. Enable the following Group Policy settings:
  4. Enable elevated privileges for the user account that will be performing the installation.
    1. Click User Configuration -> Administrative Templates -> Windows Components -> Windows Installer.
    2. Enable the Always install with elevated privileges (mandatory) Group Policy setting.
  5. Perform setup related to the user account that will install the DB2 product.
  6. Optional: Complete additional steps applicable to installing fix packs:
  7. Refresh the computer's security policy in any one of the following ways:

By following this procedure you will have set up the computer with elevated privileges and set up a user account that will be able to install DB2 server products, clients and fix packs.

After DB2 installation is complete:

Using regedit instead of the Windows Group Policy Editor

An alternative to using the Windows Group Policy Editor is to use regedit.

  1. In the registry branch HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows, add the key installer

  2. Edit the key installer with the following values:
    • For AlwaysInstallElevated, enter REG_DWORD=1
    • For AllowLockdownBrowse, enter REG_DWORD=1
    • For AllowLockdownMedia, enter REG_DWORD=1
    • For AllowLockdownPatch, enter REG_DWORD=1
    • For DisableMSI, enter REG_DWORD=0
    • For EnableUserControl, enter REG_DWORD=1
  3. In the registry branch HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows, add the key installer

  4. Edit the key installer with the following values:
    • For AlwaysInstallElevated, enter REG_DWORD=1

Removing elevated privileges

After you have given elevated privileges, you can reverse this action. To do so, remove the registry key Installer under HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows.

Granting a non-administrator user DB2 administration authorities

At this point, only members of the Windows Administrators group will have DB2 administration authorities. The Windows Administrator has the option to grant one or more DB2 authorities, such as SYSADM, SYSMAINT, or SYSCTRL to the non-Administrator user who installed the DB2 product.

[ Top of Page | Previous Page | Next Page | Contents ]