Any idea what LDAP search filter I should be using to get a list of Deleted Objects (may be just user objects) from Active Directory's Recycle Bin. I was thinking to run a custom command and restore the selected object. So my tech use a user action button to search and execute the restore custom command.
This powershell command shows all deleted objects. So what will be the corresponding LDAP search filter for home page action config.
Get-ADObject -SearchBase "CN=Deleted Objects,DC=test,DC=lab,DC=local" -ldapFilter:"(msDs-lastKnownRDN=*)" -IncludeDeletedObjects -Properties *