Microsoft KB Archive/216290

{|
 * width="100%"|

INFO: Determining Which Version of ADSI Is Installed

 * }

Q216290

-

The information in this article applies to:


 * Microsoft Active Directory Service Interfaces, versions 2.0, 2.5
 * Microsoft Active Directory Services Interface, Microsoft Active Directory Client
 * Microsoft Active Directory Services Interface, System Component

-

IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to do this, view the "Restoring the Registry" Help topic in Regedit.exe or the "Restoring a Registry Key" Help topic in Regedt32.exe.

SUMMARY
Depending on the operating system, a variety of different versions of Active Directory Services Interfaces (ADSI) can be installed on a computer. This article describes techniques that you can use to determine which version is currently installed.

MORE INFORMATION
In Microsoft Windows 2000, ADSI is a system component; because of system file protection, it cannot be installed over or deleted.

On Microsoft Windows 95, Microsoft Windows 98, and Microsoft Windows NT 4.0, ADSI is a separately installed component. You can obtain it from other Microsoft products, such as Microsoft Visual Studio or Microsoft Site Server, or you can download and install it from the following Web site:

"http://www.microsoft.com/adsi" ADSI can also be installed on a Windows 95 or Windows 98 computer by the Windows 2000 directory service client (DSClient). The DSClient is available on the Windows 2000 server CD, and can be used to make a Windows 9x computer directory-aware. The installation of the DSClient also updates the computer with a version of ADSI.

Because ADSI can be acquired in so many ways, it may be helpful to determine the version that is currently installed on a particular computer. This information can be derived in two ways:


 * by inspecting the registry.
 * by reviewing the version numbers of certain files in the file system.

Checking the Registry
Recent versions of ADSI install the following registry key, which contains the current version number:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{E92B03AB-B707-11d2-9CBD-0000F87A369E}" The following table relates ADSI versions with the values that may be found in this registry key:

Version             Value Earlier than 2.5      n/a 2.5                 2,5,00,0 Windows 2000         5,0,00,0 DSClient            5,0,00,0 Versions earlier than ADSI 2.5 do not have this registry key. If this key is not present, look then for the following key:

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ADs" If this key is present, ADSI 2.0 is installed. If this key is not present, you may have a improper installation, or no ADSI installation at all.

Checking the File System
ADSI installs several dynamic link libraries (DLLs) and a type library into the system root folder of the computer. On a Windows NT or Windows 2000 computer this folder is usually \winnt\system32. On a Windows 9x computer, the folder is \Windows\System.

The following table matches ADSI files with their corresponding version:

NOTE: An ADSI installation also updates the Wldap32.dll and Nwapi32.dll files. These libraries, however, are also updated by service packs and other Microsoft applications.

ADSI version 2.0 shipped through several vehicles. ActiveDs.dll version numbers range from 4.1.100.1 (the earliest release, which was available on the Web) through 4.1.172.1 (the release in the Microsoft Exchange BackOffice Resource Kit).

Beta versions of ADSI 2.5 were also available from the Web prior to its official release. The version numbers for ADSI 2.5 are in the syntax 4.1.25X.1, where X has the value 0 (zero) in the initial Beta release up through a value of 8 for the final release build. You should upgrade prerelease versions of ADSI 2.5 to the release build.