How to perform a command-line export of an address book view in Exchange Server 5.5 (320326)



The information in this article applies to:

  • Microsoft Exchange Server 5.5

This article was previously published under Q320326

Introduction

This article describes how to perform a command-line export of an address book view in Microsoft Exchange Server 5.5.

MORE INFORMATION

To perform a command-line export of an address book view in Exchange Server 5.5, follow these steps:
  1. 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: DownloadDownload the Csv.exe package now.
    • 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.
  2. Use Microsoft Excel to open the .csv file.
  3. 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.
  4. Save the file as Header.csv.
  5. 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.
  6. 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.

REFERENCES

For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

155414 Bulk import/export FAQ

152300 ExportObject in command-line export options file only

160971 How to export the Connections container to a text file


Modification Type:MajorLast Reviewed:8/18/2005
Keywords:kbexchDIRECTORY kbhowto kbinfo KB320326 kbAudITPRO