Run from "Active Directory Module for Windows PowerShell" with Admin rights.
User is a member of Domain admins, Scheme admin, Enterprise Admin.
intranet.mydomain.ru is the root domain (one domain forest)
After confirmation, that i'm sure to perform this action, i get next error:
Enable-ADOptionalFeature : Insufficient access rights to perform the operation
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=in
tranet,DC=mydomain,DC=ru' -Scope ForestOrConfigurationSet -Target 'intranet.mydomain.ru
'
+ CategoryInfo : NotSpecified: (CN=Recycle Bin ...t,DC=mydomain,DC=ru
:ADOptionalFeature) [Enable-ADOptionalFeature], ADException
+ FullyQualifiedErrorId : Insufficient access rights to perform the operat
ion,Microsoft.ActiveDirectory.Management.Commands.EnableADOptionalFeature
Gm...
Use " not '
All shall work Ok