Bulk Operations Facts
Bulk Operations Facts
Use the following tools if you have a large number of objects to create or modify:
Tool Description
The Csvde command imports and exports Active Directory objects using a
comma-separated values file.
● Use Csvde to export objects from one Active Directory system and
import them into another Active Directory database. You can modify the
file before importing the objects into the second Active directory
Csvde database.
● Csvde switches include:
o -i to import objects
o -e to export objects
o -f to identify the filename
● When using Csvde:
o Be sure to use the -i switch when importing a .csv file. Export
is the default.
o Passwords are not exported.
o The added user accounts are disabled. You will need to add
passwords and enable them.
Ldifde The Ldifde command imports, exports, modifies, and deletes objects in Active
Directory using LDAP Data Interchange Format (LDIF) files.
When you export user accounts with Ldifde, passwords are not exported. You
can change passwords for existing user accounts using a .ldif file, but you
cannot add new user accounts with passwords set.
To export user accounts and import them with a password, use the following
process:
The Import-Csv cmdlet can also be used in conjunction with other PowerShell
cmdlets, such as New-ADObject. This cmdlet is used to create many types of
Active Directory objects, including users, computers, groups, sites, and subnet
objects.
● When importing a CSV file, use the same variable case in the
PowerShell command as the variable name in the CSV file.
● Right-clicking at a PowerShell prompt copies the contents of the
clipboard to the PowerShell prompt.
● Use the | symbol to pipe the output of one command to the input of the
next command.
● When using a csv file to add user accounts with passwords, include
the (ConvertTo-SecureString $_.Password -AsPlainText -
force) cmdlet in the import-csv cmdlet.
The Ldp utility allows you to search for and view the properties of multiple Active
Directory objects. It is a GUI-based utility similar to Windows Explorer. It has a
Ldp
scope pane on the left that is used for navigating through the Active Directory
namespace and a details pane on the right that is used for displaying results.
Domain Services (DS) command line tools are built into the Active Directory
Directory Service server role and the Active Directory Lightweight Directory
Services (AD LDS) server role. Keep the following facts in mind:
● You can enter DS commands in a batch (.bat) file and execute the .bat
file.
● Use dsadd /? to display help for DS commands. Use dsadd object-
type /? to display help for adding the specified object type (OU, user,
group, or computer).
You can use the following DS commands to perform the indicated action in
Active Directory: