Computer Technos

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 8 January 2012

LDIFDE and CSVDE Command-Line Tools

Posted on 19:22 by Unknown
Ldifde.exe and csvde.exe are two command-line utilities that can be used to export and import Active Directory object information. For example, these tools can be used to export a list of all user accounts, groups, organizational units (OUs), and computer objects in an Active Directory domain.

When a restore of a deleted object is required, or when an object’s attribute or property values are changed, having a text file export to reference the original location and distinguished name of the object, or the values of the object’s attributes, is very valuable. To restore a single object, or an OU with all the objects contained within the OU, the distinguished name (DN) of the object is required. Using LDIFDE or CSVDE to export objects to a text file will contain the DN for all objects in the query. Either tool can be run from the command line. To export a list of all objects in Active Directory to a file called AllObjects.ldf, perform the following steps:

1. Log on to the Windows Server 2008 R2 system with an account with administrator privileges.

2. Click Start, click All Programs, click Accessories, and select Command Prompt.

3. Type cd \ and press Enter. The command prompt should reflect the local boot drive. For this example, we assume that this drive is the C: drive.

4. Type ldifde.exe –f AllObjects.ldf and press Enter.

5. The root of the C: drive now contains a file named AllObjects.ldf. Open this file using Notepad and review the export.

6. Back in the Command Prompt window, type ldifde.exe –f AllUsers.ldf –r “(objectclass=user)” and press Enter.

7. The root of the C: drive now contains a file named AllUsers.ldf. Open this file using Notepad and review the export to see that only the user objects have been exported to this file.

8. Type logoff and press Enter to log off of the server.

Ldifde.exe and csvde.exe have similar switches, but the export file format will be different. Also, each of these tools has a number of options that can be used to perform advanced queries and only export a select list of objects. For more information on these utilities, please reference the Help feature by typing ldifde /? or csvde /? and pressing Enter in a Command Prompt window.

Source of Information : Sams - Windows Server 2008 R2 Unleashed
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in Windows Server 2008 | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Using Windows 7 Ease of Access Tools
    If you have difficulty using a mouse or typing, have slightly impaired vision, or are deaf or hard of hearing, you can adjust the appearance...
  • Advanced Crash Dump Analysis - Stack Trashes
    Stack overrun or stack trashing typically results from a buffer overrun or underrun or when a driver passes a buffer address located on the ...
  • Windows 7 Data Security Enhancements
    Maintaining data integrity on the PC is a constant job for IT people. Independent businesspeople without the aid of an IT professional worry...
  • Why were parallel databases a limited success?
    As with any new technology, time is needed for development and experience in tuning for good performance and acceptable stability. Recall, a...
  • Why Does Windows Crash?
    Windows crashes (stops execution and displays the blue screen) for many possible reasons. A common source is a reference to a memory address...
  • Windows 7 Entertainment
    A few odds and ends in the entertainment department are worth noting. Though this is not the full list, these are the notables: • Media Cent...
  • Windows Malware Defense-in-Depth
    Defense-in-depth is a proven technique of layered protection that reduces the exposure of vulnerabilities. For example, you might design a n...
  • Enterprise Voice Benefits
    Perhaps some of the most tangible, new, and exciting benefits of Lync Server are those related to the Enterprise Voice set of features. With...
  • Berkeley Motes
    The Berkeley motes are a family of embedded sensor nodes sharing roughly the same architecture. Let us take the MICA mote as an example. The...
  • Windows 7 Hardware Requirements
    Let’s start with the basics. The principal (and minimal) hardware requirements for running Windows 7 are as follows: With Windows 7, Microso...

Categories

  • Access 2010
  • BlackBerr
  • BlackBerry
  • Computer Science
  • Cyber Security
  • Exchange Server 2010
  • File Utilities
  • Foursquare
  • Google
  • Hardware
  • Internet
  • iPad
  • Linux
  • Lync Server
  • Microsoft Virtualization
  • Mobile Web
  • Networking
  • News
  • Security
  • Server Architectures
  • Smartphone
  • Ubuntu Linux
  • Windows
  • Windows 7
  • Windows Home Server
  • Windows Security
  • Windows Server 2008
  • Windows Server 2008 Hyper-V
  • Windows XP
  • Wireless

Blog Archive

  • ▼  2012 (66)
    • ►  August (5)
    • ►  July (9)
    • ►  June (9)
    • ►  May (8)
    • ►  April (9)
    • ►  March (9)
    • ►  February (8)
    • ▼  January (9)
      • Project Management Office (PMO)
      • Volume Shadow Copy Service (VSS)
      • Certificate Services
      • Active Directory Recycle Bin
      • Using the Directory Services Restore Mode Password
      • Accidental Deletion Protection
      • LDIFDE and CSVDE Command-Line Tools
      • Backing Up the System State
      • Running a Manual Backup to Remote Storage Using wb...
  • ►  2011 (85)
    • ►  December (5)
    • ►  November (6)
    • ►  October (7)
    • ►  September (8)
    • ►  August (9)
    • ►  July (9)
    • ►  June (7)
    • ►  May (7)
    • ►  April (4)
    • ►  March (6)
    • ►  February (8)
    • ►  January (9)
  • ►  2010 (230)
    • ►  December (13)
    • ►  November (3)
    • ►  October (2)
    • ►  September (10)
    • ►  August (31)
    • ►  July (32)
    • ►  June (23)
    • ►  May (2)
    • ►  April (21)
    • ►  March (32)
    • ►  February (28)
    • ►  January (33)
  • ►  2009 (119)
    • ►  December (33)
    • ►  November (31)
    • ►  October (35)
    • ►  September (20)
Powered by Blogger.

About Me

Unknown
View my complete profile