You can use the Csvde utility, which is included in Windows Server 2003 and Windows 2000 Server, to create a comma-separated value (CSV) file that lists all objects in a domain. For example, to list all objects in the home.local domain, you’d run the command
csvde -d “dc=home,dc=local” -f domain.csv
Note: this can only be run from a Windows 2000/2003 server. It cannot be run from a workstation.