Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

The Ldp.exe and Ldifde.exe programs do not display the "memberOf" attribute for Active Directory Recycle Bin objects


View products that this article applies to.

Symptoms

When you use the Ldp.exe program or the Ldifde.exe program to display attributes about a deleted user account when the Active Directory Recycle Bin feature is enabled in Windows Server 2008 R2, the "memberOf" attribute data will not show any groups. Other attribute data is displayed correctly.

↑ Back to the top


Workaround

To work around this problem, use the Active Directory PowerShell cmdlet "Get-ADObject" to correctly show group membership information on deleted objects when you use the Active Directory Recycle Bin feature.

For example, to correctly show group membership information on deleted objects, open a command prompt and then change to the PowerShell directory. At the command prompt, type the following commands and then press ENTER after each command:
import-module activedirectory

Get-ADObject -filter {(isDeleted -eq $true) -and (samAccountName -like "user_name")} -includeDeletedObjects -properties * | ft samAccountName,memberOf -auto -wrap
Note In this command, the user_name placeholder is the user name of the deleted user account.

These commands accurately return the group membership information as the following:
samAccountName memberOf
-------------- --------
user_name      {CN=Sales,CN=Users,DC=contoso,DC=com}

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Ldp.exe program and the Ldifde.exe program in Windows Server 2008 R2.

↑ Back to the top


More information

For more information about the Active Directory Recycle Bin feature, see the Active Directory Recycle Bin Step-by-Step Guide. To see the Active Directory Recycle Bin Step-by-Step Guide, visit the following Microsoft TechNet Web site:

↑ Back to the top


Keywords: KB976838, kbprb, kbsurveynew, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 976838
Revision : 2
Created on : 10/21/2009
Published on : 10/21/2009
Exists online : False
Views : 463