Tuesday, November 24, 2015

Using LDIF to Delete a User in AD DS


In this example, you use LDIF to remove the user named James Smith from the Marketing OU.
  1. Start a text editor such as Notepad, and create a new file named Deluser.ldf.
  2. Edit the LDIF file Deluser.ldf, and add the following text.
    dn: CN=JamesSmith,OU=Marketing,DC=reskit,DC=com
    changetype: delete
    Figure 5: Remove James Smith from OU
    Figure 5: Remove James Smith from OU
  3. Run LDIFDE to delete the user from Active Directory. At the command prompt, type the following command, and then press Enter.
    ldifde –i -f deluser.ldf -s hq-res-dc-01
  4. To confirm that the user has been deleted, check the Active Directory Users and Computers snap-in.

No comments:

Post a Comment