Jump to content

Εισαγωγή πολλαπλών επαφών σε ένα OU στο Active Directory με CSVDE?


mts
 Share

Recommended Posts

Καλημέρα!

 

Θα ήθελα μια βοήθεια. Προσπαθώ να κάνω import γύρω στις 1.500 επαφές (email addresses) σε ένα συγκεκριμένο OU μέσα στο Active Directory μέσω του CSVDE.

 

Έχω ένα Excel με τα ονόματα (όνομα/επώνυμο) και τα emails των επαφών αυτών. Βάζω σαν επικεφαλίδες τα attributes αυτών (δηλαδή objectclass,givenname,sn,mail) και σώζω σαν CSV.

 

Στην προσπάθεια να κάνω import με την εντολή :

 

CSVDE -i -k -f contacts.csv 

 

παίρνω πίσω error. 

 

C:\Scripts>CSVDE -i -f contacts.csv
Connecting to "(null)"
Logging in as current user using SSPI
Importing directory from file "contacts.csv"
Loading entries.
Invalid number of attributes in input file.
Syntax error on line 2
0 entries modified successfully.
An error has occurred in the program
No log files were written.  In order to gene
specify the log file path via the -j option.
 
To csv είναι κάπως έτσι (δες εικόνα) έχω αλλάξει τα ονόματα για ευνόητους λόγους.
 
Μπορείτε να με βοηθήσετε?
 
 

post-11063-0-19611900-1456615673_thumb.png

post-11063-0-19611900-1456615673_thumb.png

Link to comment
Share on other sites

Αν το CSV αρχείο είναι όπως στην εικόνα το μόνο πρόβλημα που βλέπω είναι τα quotes στο πεδίο του distinguished name (DN).

Θα έπρεπε να είναι όπως παρακάτω:

objectclass,DN,givenname,sn,mail
contact,"CN=Bob Dylan,OU=Mail Contacts,DC=Contoso,DC=local",Bob,Dylan,[email protected]

Αλλιώς βλέπει το κάθε κόμμα σαν καινούργιο πεδίο.

Το CSVDE το τρέχεις επάνω στον domain controller; Στο output που έχεις βάλει δεν βλέπω να έχεις ορίσει server που θα συνδεθει για να κάνει το import.

Link to comment
Share on other sites

Μιχάλη σε ευχαριστώ πάρα πολύ. Σε ένα VM που έχω φτιάξει εδώ σπίτι, έβαλα τα quotes και δούλεψε τέλεια! (αν είναι δυνατόν.. τελικά όταν κολλάει το μυαλό, κολλάει στα πιο απλά..)

 

Ναι στον Domain Controller θα το τρέξω απευθείας. :)

 

Σε ευχαριστώ και πάλι!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...