Solved

Recover a deleted Item In active directory

Posted on 2013-11-01
9
419 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
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…
Suggested Courses

615 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