• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2296
  • Last Modified:

Enable AD recycle bin problem

I'm having some trouble to enable AD recycle bin.  The DC from where I'm trying to enable the AD recycle bin is the schema master, the functional level is Windows 2008 R2 mode and we have no problem in AD.

Here is what I got
PS C:\Users\administrator.mydomain> Enable-ADOptionalFeature -Identity `CN=Recycle B
in Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,C
N=Configuration,DC=mydomain,DC=ca' -Scope ForestOrConfigurationSet -Target `mydomain.ca'

WARNING: Enabling 'Recycle Bin Feature' on
'CN=Partitions,CN=Configuration,DC=mydomain,DC=ca' is an irreversible action! You
will not be able to disable 'Recycle Bin Feature' on
'CN=Partitions,CN=Configuration,DC=mydomain,DC=ca' if you proceed.

Confirm
Are you sure you want to perform this action?
Performing operation "Enable" on Target "Recycle Bin Feature".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y
Enable-ADOptionalFeature : The specified method is not supported
At line:1 char:25
+ Enable-ADOptionalFeature <<<<  -Identity `CN=Recycle Bin Feature,CN=Optional
Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=msd
l,DC=ca' -Scope ForestOrConfigurationSet -Target `mydomain.ca'
    + CategoryInfo          : NotSpecified: (CN=Recycle Bin ...n,DC=mydomain,DC=ca
   :ADOptionalFeature) [Enable-ADOptionalFeature], ADException
    + FullyQualifiedErrorId : The specified method is not supported,Microsoft.
   ActiveDirectory.Management.Commands.EnableADOptionalFeature
0
quadrumane
Asked:
quadrumane
  • 7
  • 5
  • 2
  • +1
2 Solutions
 
quadrumaneAuthor Commented:
And the account I'm using is ent, admin
0
 
RickSheikhCommented:
Try this,

Enable-ADOptionalFeature 'Recycle Bin Feature' -Scope ForestOrConfigurationSet -Target <your forest root domain name>
0
 
quadrumaneAuthor Commented:
I got the same error
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
RickSheikhCommented:
Are you sure its the same error ?

Because your first error was at the -identity parameter, with what I asked to retry, there is no -identity parameter

Can you post the error ?
0
 
RickSheikhCommented:
Here is another method from the AskDS blog, that does the work itself for finding the DNM and the target forest name.

Give it a try :

Enable-ADOptionalFeature "Recycle Bin Feature" -server ((Get-ADForest -Current LocalComputer).DomainNamingMaster) -Scope ForestOrConfigurationSet -Target (Get-ADForest -Current LocalComputer)
0
 
quadrumaneAuthor Commented:
No matter what I still have the same error.  I've been trying from several DCs.  I looked up in ntdsutil to check for errors in the AD.  Nothing.   I didn't have much success with LDP.EXE
0
 
RickSheikhCommented:
Is UAC disabled? Or can you try running the command from an elevated command prompt?
0
 
quadrumaneAuthor Commented:
Yes  I log As administrator
0
 
RickSheikhCommented:
Are you launching the powershell AD module by right clicking and doing "run as admin" ?
0
 
quadrumaneAuthor Commented:
Yes
0
 
Mike KlineCommented:
Can you verify the forest functional level again.  I know you mentioned the functional level but wasn't sure if that was domain or forest

Thanks

Mike
0
 
quadrumaneAuthor Commented:
Yes it is, look at the picture.  This is very strange.  I checked everything out and I don't see any problem.  
2011-05-09-09-35-57.jpg
0
 
Mike KlineCommented:
That is the domain functional, can you also verify the forest functional (see my screenshot).  In domains and trusts right click on "AD Domains and Trusts" and select properties there.

Thanks

Mike
forest-functional-screenshot.png
0
 
quadrumaneAuthor Commented:
My mistake, the functional forest hasn't been raised to Windows 2008 R2.  Thanks to both of you.  
0
 
ibexsystemsCommented:
Very Useful. Thank you,
0

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

  • 7
  • 5
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now