How do I perform command line actions against Active Directory?

9:45 AM

For Active Directory, there are a few command line tools in gathering up data for objects as well creating and deleting objects.  For exports and imports, you can use the following tools:

  • CSVDE - command line tool that creates a CSV or similarly delimited file with existing data gathered from Active Directory
  • LDIFDE - command line tool that creates a LDF file that gives more flexibility in how data is gathered from Active Directory and summarily imported back into Active Directory

Alternatively, for scripted actions as well as one-off actions that an administrator wants to perform (reporting on group membership for example), you can use the following set of commands:

  • DSQUERY - Queries an object(s) for information
  • DSGET - Sets operational target to the selected object
  • DSADD - Adds an object to Active Directory
  • DSMOVE - Moves an object from one location to another
  • DSMOD - Modifies an existing Active Directory object
  • DSRM - Removes an object(s) from Active Directory

For more information on how to use the command line tools above, you may go to the following link:

http://www.computerperformance.co.uk/Logon/Logon_CSVDE.htm
http://www.computerperformance.co.uk/Logon/Logon_LDIF.htm
http://www.computerperformance.co.uk/Logon/DSadd_DSmod_DSrm.htm

You Might Also Like

0 comments

Contact Form

Name

Email *

Message *

Translate

Wikipedia

Search results