In this example, you use LDIF to remove the user named James Smith from the Marketing OU.
- Start a text editor such as Notepad, and create a new file named Deluser.ldf.
- Edit the LDIF file Deluser.ldf, and add the following text.dn: CN=JamesSmith,OU=Marketing,DC=reskit,DC=comchangetype: deleteFigure 5: Remove James Smith from OU
- 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
- To confirm that the user has been deleted, check the Active Directory Users and Computers snap-in.
No comments:
Post a Comment