Windows 2003 Shell Scripting

Scripting-Hilfe für ActiveDirectory

CSVDE

csvde.exe ist ein Programm, mit dem komplette Objekte aus dem ActiveDirectory exportiert oder importiert werden können. Einzelne Attribute eines bestehenden Objekts lassen sich nicht verändern, dafür wird ldifde oder dsmod benutzt. csvde.exe ist besonders dann sehr nützlich, wenn es um die Erstellung von Reports geht oder viele Benutzerdaten an Programme zur Auswertung übergeben werden müssen.

Hier die allgemeine Syntax von csvde:

CSV Verzeichnis Exchange

General Parameters
==================
-i Turn on Import Mode (The default is
Export)
-f filename Input or Output filename
-s servername The server to bind to (Default to DC of
computer's domain)
-v Turn on Verbose Mode
-c FromDN ToDN Replace occurences of FromDN to ToDN
-j path Log File Location
-t port Port Number (default = 389)
-u Use Unicode format
-? Help

Export Specific
===============
-d RootDN The root of the LDAP search (Default to
Naming Context)
-r Filter LDAP search filter (Default to
"(objectClass=*)")
-p SearchScope Search Scope (Base/OneLevel/Subtree)
-l list List of attributes (comma separated) to
look for in an
LDAP search
-o list List of attributes (comma separated) to
omit from input.
-g Disable Paged Search.
-m Enable the SAM logic on export.
-n Do not export binary values

Import
======
-k The import will go on ignoring
'Constraint Violation' and
'Object Already Exists' errors

Credentials Establishment
=========================
Note that if no credentials is specified, CSVDE will
bind as the currently
logged on user, using SSPI.

-a UserDN [Password | *] Simple
authentication
-b UserName Domain [Password | *] SSPI bind method