Table of Contents
| Introduction |
| Get-ADOptionalFeature Cmdlet Default and Extended Properties |
| See Also |
| Other Resources |
The concept of default and extended properties available with the PowerShell Active Directory cmdlets are defined in the Wiki article "Active Directory: PowerShell AD Module Properties" linked in the "See Also" section below.
The PowerShell Get-ADOptionalFeature cmdlet supports the default and extended properties in the following table. Many can be assigned values with the Set-ADOptionalFeature cmdlet. In the table, default properties are shown with the property name highlighted in red. Extended properties are highlighted in blue.
| Property | Syntax | R/RW | lDAPDisplayName |
| CanonicalName | String | R | canonicalName |
| CN | String | R | cn |
| Created | DateTime | R | whenCreated |
| Deleted | Boolean | R | isDeleted |
| Description | String | RW | description |
| DisplayName | String | RW | displayName |
| DistinguishedName | String (DN) | RW | distinguishedName |
| EnabledScopes | ADCollection | R | DN's of Partitions |
| FeatureGUID | GUID | R | msDS-OptionalFeatureGUID |
| FeatureScope | ADCollection | R | msDS-OptionalFeatureFlags (bit masks 1, 2, and 8) |
| IsDisableable | Boolean | R | msDS-OptionalFeatureFlags (bit mask 4) |
| LastKnownParent | String (DN) | R | lastKnownParent |
| Modified | DateTime | R | whenChanged |
| Name | String | R | cn (Relative Distinguished Name) |
| ObjectCategory | String | R | objectCategory |
| ObjectClass | String | RW | objectClass, most specific value |
| ObjectGUID | Guid | RW | objectGUID converted to string |
| ProtectedFromAccidentalDeletion | Boolean | RW | nTSecurityDescriptor |
| RequiredDomainMode | Integer | R | msDS-RequiredDomainBehaviorVersion |
| RequiredForestMode | Integer | R | msDS-RequiredForestBehaviorVersion |
The attributes are those of the Optional Feature object, for example "cn=Recycle Bin Feature". These are objects of class msDS-OptionalFeature, located in the container "cn=Optional Features,cn=Directory Service,cn=Windows NT,cn=Services,cn=Configuration,dc=mydomain,dc=com", where the domain is mydomain.com.
Active Directory: PowerShell AD Module Properties
Active Directory PowerShell Cmdlet Properties
Find All Available Optional Features
Retrieve Details of an Optional Feature
How can I tell if 2008 R2 AD recycle bin is turned on?