The concept of default and extended properties available with the PowerShell Active Directory cmdlets are defined in Active Directory: PowerShell AD Module Properties. The PowerShell Get-ADOptionalFeature cmdlet supports the default and extended properties in the following table. There is no Set-ADOptionalFeature cmdlet. In the table, default properties are shown with the property name highlighted in cyan. Extended properties are highlighted in pink.

Property Syntax R/RW lDAPDisplayName
CanonicalName String R canonicalName
CN String R cn (Common Name)
Created DateTime R whenCreated
Deleted Boolean R isDeleted
Description String RW description
DisplayName String RW displayName
DistinguishedName String (DN) R 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 name
ObjectCategory String R objectCategory
ObjectClass String R objectClass, most specific value
ObjectGUID GUID R 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.


See Also


Other Resources