Solved

Recover a deleted Item In active directory

Posted on 2013-11-01
9
367 Views
Last Modified: 2013-11-05
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?
0
Comment
Question by:Dj_ElMaster
  • 4
  • 4
9 Comments
 
LVL 7

Expert Comment

by:dec0mpile
ID: 39617507
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
 
LVL 13

Accepted Solution

by:
notacomputergeek earned 500 total points
ID: 39617520
I've used ADRestore on Windows Server 2008:
http://technet.microsoft.com/en-us/sysinternals/bb963906.aspx
0
 

Author Comment

by:Dj_ElMaster
ID: 39617578
No Go how about displaying the deleted Items?
0
 
LVL 13

Expert Comment

by:notacomputergeek
ID: 39617596
Click Enumerate Tombstones. If it's listed below, click on it and click Restore Object.
0
Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

 

Author Comment

by:Dj_ElMaster
ID: 39621796
were is this Enumerate Tombstones?
0
 
LVL 13

Expert Comment

by:notacomputergeek
ID: 39621998
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
 

Author Comment

by:Dj_ElMaster
ID: 39622305
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
 
LVL 13

Expert Comment

by:notacomputergeek
ID: 39622410
It should be: left-click to highlight it and then left-click on 'Restore Object' near the top of the dialog box.
0
 

Author Closing Comment

by:Dj_ElMaster
ID: 39624091
Thanks for your help. You saved me!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Online collaboration can help businesses be more efficient, help employees grow their skills and foster a team environment.
OfficeMate Freezes on login or does not load after login credentials are input.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now