Solved

Recover a deleted Item In active directory

Posted on 2013-11-01
9
401 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 13

Expert Comment

by:notacomputergeek
ID: 39617596
Click Enumerate Tombstones. If it's listed below, click on it and click Restore Object.
0
 

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
There's a better way to communicate time sensitive or critical info.
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

685 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