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

Article translations Article translations
Article ID: 976838 - View products that this article applies to.
Expand all | Collapse all

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.

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}

STATUS

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

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:
http://technet.microsoft.com/en-us/library/dd392261(WS.10).aspx

Properties

Article ID: 976838 - Last Review: October 21, 2009 - Revision: 1.1
APPLIES TO
  • Windows Server 2008 R2 Datacenter
  • Windows Server 2008 R2 Enterprise
  • Windows Server 2008 R2 Standard
  • Windows Web Server 2008 R2
Keywords: 
kbexpertiseinter kbsurveynew kbprb KB976838

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com