This article describes how to perform a command-line export of an address book view in Microsoft Exchange Server 5.5.
To perform a command-line export of an address book view in Exchange Server 5.5, follow these steps:
- Create a .csv file that contains all the headers that
you want to export. To do this, use one of the following methods:
- Use the Header.exe program in the Microsoft Exchange
Resource Kit to create a file that contains the data field names that you want to
export.
- Manually create a .csv file that contains the data field names that you want to
export.
Note To export all the data fields that are associated with an object, you may also use one of the sample .csv files that are located in the following directory on the Microsoft Exchange Server 4.0 CD: Support\Samples\Csvs
The Csvs directory has subdirectories that contain .csv files for mailboxes, custom recipients, and distribution lists. Copy the relevant .csv file from the CD to the hard disk. Then, remove the read-only attribute of the .csv file.
If you do not have the Exchange Server 4.0 CD, you can obtain the sample .csv files from the Microsoft Download Center: Collapse this imageExpand this image
Download the Csv.exe package now.
(http://download.microsoft.com/download/exch55/utility/5.5/nt45/en-us/csv.exe)
- In the Microsoft Exchange Administrator program, run the
Directory Export command. Specify a .csv file that you created to populate the .csv file with data.
- Use Microsoft Excel to open the .csv file.
- If the .csv file contains exported recipients, remove the exported
recipients. However, do not remove the first row that contains the data field names that you want to export.
- Save the file as Header.csv.
- Use Notepad to create an Options.ini file that contains the
following information in the [export] section:
[export]
Basepoint=/o=orgname
Container=/ou=_ABViews_/cn=ABV Directory name
ExportObject=All
Note In this example, orgname is the organization name as
it appears in the containers view in the Microsoft Exchange Administrator program. - Type the following command at a command prompt:
Admin /e header.csv /s servername /o options.ini
Note In this example, servername is the name of the Exchange Server 5.5 server to which the address book view is exported.
For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
155414
(http://support.microsoft.com/kb/155414/
)
Bulk import/export FAQ
152300
(http://support.microsoft.com/kb/152300/
)
ExportObject in command-line export options file only
160971
(http://support.microsoft.com/kb/160971/
)
How to export the Connections container to a text file