Re: CSVDE Importing
From: Al Dunbar [MS-MVP] (alan-no-drub-spam_at_hotmail.com)
Date: 04/21/04
- Next message: Matt Hickman: "Re: XP slowness logging into an AD domain"
- Previous message: Marin Marinov: "Re: allow users to defrag pc's on domain?"
- In reply to: Karl: "CSVDE Importing"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Apr 2004 20:31:41 -0600
"Karl" <karl@karl.com> wrote in message
news:2sXgc.32141$h44.4696085@stones.force9.net...
> We have around 200 users within AD that I want to update there information
> within AD.
>
> I have exported certain fields from AD using the following command.
>
> CSVDE -f users.csv -r "(&(objectCategory=person)(objectClass=user))" -l
> "countryCode, description, displayName, comment, manager, company,
> department, physicalDeliveryOfficeName, streetAddress, c,
> facsimileTelephoneNumber, I, homePhone, mobile, otherTelephone, pager,
> postalCode, st, telephoneNumber, co, title, wWWHomePage, postOfficeBox"
>
> I have now updated the information that was exported with excel and saved
> the file back to a csv file.
>
> When I goto import the file I get a error
>
> Logging in as current user using SSPI
> Importing directory from file "users.csv"
> objectClass Attribute not defined
> 0 entries modified successfully.
> An error has occurred in the program
> No log files were written. In order to generate a log file, please
> specify the log file path via the -j option.
>
>
> I am not adding any new users just editing there details.
There is your problem. CSVDE imports can only be used to create new users
(or other objects) as they are incapable of modifying the properties of
existing objects. Short of writing your own script to do the importing, you
could use LDIFDE instead. It can create (and even delete) new objects, but
more importantly for you it can modify the properties of existing objects.
Unfortunately, the syntax is a bit more involved than a simple csv file,
which makes it a little more difficult to manage its content via script.
When I am faced with a task for which writing a full script would be
overkill, I often do an ldifde extract, interactively change this to the
import syntax using PrimalScript editor macros (yes, I know, very kludgy and
adhoc), and then upload the result.
/Al
- Next message: Matt Hickman: "Re: XP slowness logging into an AD domain"
- Previous message: Marin Marinov: "Re: allow users to defrag pc's on domain?"
- In reply to: Karl: "CSVDE Importing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|