Restore-ADObject not working
-
Friday, February 01, 2013 6:36 AM
Hi,
I am using the following command in windows 2008r2 ad powershell to restore a Deleted AD account and it fails with the given Error. Please help.
Restore-ADObject -identity e7cd01a2-c294-45cc-b99a-c45f43e88d2f
Restore-ADObject : Illegal modify operation. Some aspect of the modification is
not permitted
At line:1 char:17
+ Restore-ADObject <<<< -identity e7cd01a2-c294-45cc-b99a-c45f43e88d2f
+ CategoryInfo : InvalidOperation: (CN=abc,DC
=com:ADObject) [Restore-ADObject], ADIllegalModifyOperationException
+ FullyQualifiedErrorId : 0,Microsoft.ActiveDirectory.Management.Commands.
RestoreADObject
Thanks in advance.
All Replies
-
Friday, February 01, 2013 9:49 PM
-
Monday, February 04, 2013 12:08 AMThis most likely happens if you haven't truned on the Recycle-Bin in Active Directory:
http://blogs.technet.com/b/askds/archive/2009/08/27/the-ad-recycle-bin-understanding-implementing-best-practices-and-troubleshooting.aspxEnfo Zipper
Christoffer Andersson – Principal Advisor
http://blogs.chrisse.se - Directory Services Blog -
Tuesday, February 05, 2013 5:04 AMModerator
Hi,
Please first run:
Get-ADOptionalFeature 'Recycle Bin Feature'
If it is not turned on,run below command:
Enable-ADOptionalFeature 'recycle Bin Feature' -Scope ForestOrConfigurationSet -Target 'fabrikam.com' -server dc1
Regards,
Yan Li
Cataleya Li
TechNet Community Support- Marked As Answer by Yan Li_Microsoft Contingent Staff, Moderator Sunday, February 17, 2013 12:19 PM
-
Tuesday, February 05, 2013 11:03 AM
Hi,
check the step-by-setp guide:
http://technet.microsoft.com/en-us/library/dd392261%28v=ws.10%29.aspx
Kind regards,
Tim
MCITP, MCTS
http://directoryadmin.blogspot.comThis posting is provided 'AS IS' with no warranties or guarantees and confers no rights.
"If this thread answered your question, please click on "Mark as Answer"
- Marked As Answer by Yan Li_Microsoft Contingent Staff, Moderator Sunday, February 17, 2013 12:19 PM


