Solved

Recover a deleted Item In active directory

Posted on 2013-11-01
9
386 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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
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 configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

815 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

7 Experts available now in Live!

Get 1:1 Help Now