GetDatabaseInfo Method

Retrieves the path and size of the Active Directory database. It also returns the free space in kilobytes for the drive on which the database is located.

Syntax

ActiveDirectory.GetDatabaseInfo(Path String, Size Long, FreeSpace Long)

Parameters

Path Out. The path of the Active Directory database.
Size Out. The size in kilobytes of the Active Directory database.
FreeSpace Out. The amount of free space in kilobytes on the drive on which the database is located.

Return Type

Boolean.

Example

To get information about the Active Directory database, enter:

Dim objActiveDirectory
Dim strPath
Dim lngSize, lngFreeSpace

Set objActiveDirectory = CreateObject("McActiveDir.ActiveDirectory")
objActiveDirectory.GetDatabaseInfo(strPath, lngSize, lngFreeSpace)
Set objActiveDirectory = Nothing