When you enable the Recyle Bin feature on Windows Server 2008 R2 using the following command you receive the error "The specified method is not supported"

When you enable the Recyle Bin feature on Windows Server 2008 R2 using the following command you receive the error "The specified method is not supported"

C:\Users\Administrator> Enable-ADOptionalFeature -Identity 'CN=Recycle Bin Fe
ature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Con
figuration,DC=domain,DC=Suffix'-Scope ForestOrConfigurationSet -Target 'domainname'

Error returned

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=mcs
e,DC=local' -Scope ForestOrConfigurationSet -Target 'mcse.local'
    + CategoryInfo          : NotSpecified: (CN=Recycle Bin ...C=mcse,DC=local
   :ADOptionalFeature) [Enable-ADOptionalFeature], ADException
    + FullyQualifiedErrorId : The specified method is not supported,Microsoft.
   ActiveDirectory.Management.Commands.EnableADOptionalFeature


This error is shown when the Forest Functional Level is not set to Windows Server 2008 R2

The interesting thing I find with this error is as Microsoft moves more to PowerShell as an alternative to graphical tools they seem to have forgotten a crucial rule which is that you should always provide as useful an error message as possible to users. In the graphical interface you would expect an error such as "This feature cannot be enabled with the current forest functional level".

It's a slight concern that helpful informational guestures like this don't seem to be making it to many PowerShell commands.

Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Enable function lock for F1-F12 on HP ZBook mobile workstations