Recover a deleted Item In active directory

I am trying to recover and Item in active directory and having some issues. I am using power shell with the comad lines below

Import-Module Activedirectory

Get-ADObject -Filter {displayName -eq 'test user'} -IncludeDeletedobjects | Restore-ADobject

Test User is the user I created and deled to test this command but nothing happens it goes to the next line with no error message but the user is not resotred.

What am I doing wrong?
Dj_ElMasterAsked:
Who is Participating?
 
notacomputergeekConnect With a Mentor Commented:
I've used ADRestore on Windows Server 2008:
http://technet.microsoft.com/en-us/sysinternals/bb963906.aspx
0
 
dec0mpileCommented:
Try to put displayName in double quotes and see if that makes a difference.

Instead of:
Get-ADObject -Filter {displayName -eq 'test user'} -IncludeDeletedobjects | Restore-ADobject

Try:
Get-ADObject -Filter {displayName -eq "test user"} -IncludeDeletedObjects | Restore-ADObject

Also, in IncludeDeletedObjects all letters are capital. I don't know if that matters. Same with ADObject
0
 
Dj_ElMasterAuthor Commented:
No Go how about displaying the deleted Items?
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
notacomputergeekCommented:
Click Enumerate Tombstones. If it's listed below, click on it and click Restore Object.
0
 
Dj_ElMasterAuthor Commented:
were is this Enumerate Tombstones?
0
 
notacomputergeekCommented:
You may have to upload a screen shot of ADRestore running. On my version, it says "Help" at the top and right below that is "Enumerate Tombstones". Are you connected to your Active Directory with it?
0
 
Dj_ElMasterAuthor Commented:
I run ADrestore and I can see the list of deleted accounts, in there the one I need to restore. What do I do next?
0
 
notacomputergeekCommented:
It should be: left-click to highlight it and then left-click on 'Restore Object' near the top of the dialog box.
0
 
Dj_ElMasterAuthor Commented:
Thanks for your help. You saved me!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.