|
Guy recommends :
Find out which of your VMs are a waste of space and which VMs need more resources. |
CSVDE - Switches (Parameters)Introduction to CSVDE SwitchesWith an Active Directory import or export, the spreadsheet should be your focus. Surprisingly, CSVDE and its switches only play a minor part in the data exchange. My point is that with other Windows executables like Isinteg or NTDSUTIL you cannot learn enough about their switches. However, you can become an expert in CSVDE with just a passing acquaintance with these 6 switches: -d, -f, -i, -k, -l, and -r. As I keep saying, the real work is done in the Excel spreadsheet, especially with an import into Active Directory. CSVDE Topics♦ CSVDE Beginners Mistake to AvoidA beginners mistake with CSVDE, is to put a space between the minus sign and the switch: List of CSVDE SwitchesIf you take my advice, just concentrate on these 6 CSVDE switches: -d, -f, -i, -k, -l and -r -a and -b UserDistinguishedName Password. If you must use these switches, then treat -a and -b as a pair. A likely scenario is that you are logged on as non-administrator and wish to run CSVDE against your Active Directory. As a non-administrator, you would get an error unless you employ these switches to connect with the correct credentials. -c String1 String2. This switch replaces all olddomain names in String1 with newdomain names String2. Could be used to change all dc=oldom distinguished name in the export domain (String1) with dc=newdom of the import domain (String2). Guy's advice is to ignore the -c switch and make all such find and replace changes in the spreadsheet before you create the import CSV file. -d This is useful filter switch for when you want to export from just one OU. Use the -d switch to set the root directory for the export. For example, if you are only interested in an OU called Newport type, CSVDE -f Newport1.csv -d "OU=Newport,DC=cp,DC=com". Note, there are no spaces between cp,DC=com. -f filename is a mandatory switch for both import and export. Simply specify the .csv file for transfer data. It makes life easier if this file is in the same directory as you issue the CSVDE command. Here is an export example CSVDE -f Newport.csv -g Omits paged searches. I have never bothered with this switch. -i Switches CSVDE to import mode. For example, CSVDE -i -f Newport.csv. Remember that the default mode is export, in which case it's just plain CSVDE -f FileName.csv -j Path Sets the log file directory. The point of a log file is that it's permanent where as the -v verbose mode is ephemeral. -j creates one or two log files. It always creates a file called csv.log, additionally it creates csv.err if it encounters any errors. -j Trap: As far as I can see without the -j switch, CSVDE will not create a log file at all. I mention this as other documentation suggests that you are just setting the path, in my opinion, with -j you are creating the file as well as setting its path. -k Useful for ignoring simple errors: "Object already exists," "Constraint violation," and "Attribute or value already exists." I almost always use this switch as part of the CSVDE import command.
Guy Recommends: Solarwinds' Free Bulk Import Tool
|
||||
Custom Search
|
Guy Recommends: WMI Monitor and It's Free!
|
|
Home Copyright © 1999-2012 Computer Performance LTD All rights reserved Please report a broken link, or an error. | |
If you like this page then please share it with your friends
Download your eBook: How to use CSVDE commands - only $6.25
Save
hours of frustration and buy Guy's eBook. The extra features include:
detailed instructions on how to import and export user accounts, ten new pages
of worked CSVDE examples.
You get a printer friendly version with copy enabled, and no expiry date.