AD restoration powershell command

Running the below command gives me no output, when I actually tested and ensure that id is present. I am logging in with domain admins right, so that is not the issue. Am I missing anything

Get-ADObject -filter ‘isdeleted -eq $true -and Name -like “test”’ -IncludeDeletedObjects

try this

Get-ADObject -filter {isdeleted -eq $true -and Name -like "*test*"} -IncludeDeletedObjects

[quote quote=209415]try this

Get-ADObject -filter {isdeleted -eq $true -and Name -like “*test*”} -IncludeDeletedObjects
[/quote] thanks this works...and I have to run powershell in admin mode.